Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial moves to OpenAPI v3 #758

Closed
wants to merge 15 commits into from
Closed

Initial moves to OpenAPI v3 #758

wants to merge 15 commits into from

Conversation

schristley
Copy link
Member

@schristley schristley commented Feb 21, 2024

Start building the base so we only need to edit the OpenAPI v3 spec, and the v2 spec can be generated from v3. Also clean up the test suites so there is one common set of test data files used by all languages.

@schristley
Copy link
Member Author

schristley commented Feb 21, 2024

$ make

Helper commands for AIRR Standards repository

make gen-v2       -- Generate OpenAPI V2 spec from the V3 spec
make build-docs   -- Build documentation
make spec-copy    -- Copy spec files to language directories
make data-copy    -- Copy test data files to language directories
make checks       -- Run consistency checks on spec files
make tests        -- Run all language test suites
make python-tests -- Run Python test suite
make r-tests      -- Run R test suite
make js-tests     -- Run Javascript test suite

@bussec
Copy link
Member

bussec commented Feb 22, 2024

Looks good! And we should implement the make data-copy function rather sooner than later. #741 will put the the JSON/YAML data files in sync again, but the TSVs still need fixing.

@bcorrie
Copy link
Contributor

bcorrie commented Feb 23, 2024

I am not up to speed on the automation. I am all in favor of keeping the specs in sync but not much I can contribute as reviewer. I will leave it in your hands to approve this, am removing myself as reviewer. 8-)

@bcorrie bcorrie removed their request for review February 23, 2024 01:57
@bcorrie bcorrie linked an issue Feb 23, 2024 that may be closed by this pull request
5 tasks
@schristley
Copy link
Member Author

Do we 1) remove the test data file from the lang directories or 2) leave them there? Probably 2) so that the lang directories are "complete" without additional steps. Similar to schema files, so should add consistency checks to verify the test data files match.

@schristley
Copy link
Member Author

schristley commented Feb 26, 2024

the problem we will have with generating the v2 spec from v3 is that the output will not be pretty, will lose comments, etc., unless we write a sophisticated translation program, which probably isn't worth the effort. That implies we should stick with maintaining both files and the consistency check, until we are ready to completely deprecate v2.

@schristley
Copy link
Member Author

I created conflicts when merging in master incorrectly, so starting over with #767

@schristley schristley closed this Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deprecate openapi v2 for v3
3 participants