-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Proposal: Create new repo for openapi tests, similar to json schema test suite #3486
Comments
The JSON Schema test suite has two "buckets" historically:
The latter was even until now not broken out further mostly because it never was super high priority, and that secondly doing so is disruptive for users of the suite who might be (and in fact do) rely on the layout of tests. But if the suite was (re-)started today I would have started by having explicit directories for So if you're going to tackle OpenAPI I'd start there immediately (with explicitly representing what level of requirement the tests represent). But really my personal unsolicited opinion is to start very concretely on scope -- specifically, if it were me, I would start with a repo whose entire scope is specifically "have format tests for all the OpenAPI Format Registry" and nothing else at all. That has specific well-defined scope, and essentially matches the existing JSON Schema test suite tests, so it'd seem like there should be no need to wait for anything to do that. All the rest (having suites for the rest of the OpenAPI behavior) seems like it'd be way more open to other opinions -- and the JSON Schema test suite format is unlikely to work for all of what such a suite might want to test, much as it's also clear to me too it'd be useful. So again as I say, if it were me, even if I wanted to tackle both, I'd probably then start with 2 separate repositories, But just my 0.02 (and hopefully answered the question there). Happy to help with other things if you all need the hand, or else to answer any other questions. |
See also #3510 regarding the existing linked in the 2nd paragraph of the original comment. I agree that the format registry is the best scope to start with. You could expand that with tests of other OAS extensions to JSON Schema, but these are really different suites with different expectations of conformance. Tests for the OAS as a whole are the provenence of OAI/oascomply, and are a far more complex problem because the OAS does not define measurable output behavior. But format registry and JSON Schema extensions (which were excluded from the scope of OASComply) make sense to track here. |
This came up for format: double and format: float here: openapi-json-schema-tools/openapi-json-schema-generator#426 |
This issue is a proposal that a new repo be created that stores tests of openapi payloads, request, responses, and documents. These tests will help implementation verify that they have built features correctly.
There is existing prior work here that applies to json schema only in the json schema test suite: https://github.com/json-schema-org/JSON-Schema-Test-Suite
Need for this solution:
Benefits:
Proposal Short Term:
I would be happy to add additional test for int32/float/double/int formats
@karenetheridge mentioned that she could contribute tests from https://github.com/karenetheridge/OpenAPI-Modern/tree/master/t
Open Questions:
The text was updated successfully, but these errors were encountered: