-
Notifications
You must be signed in to change notification settings - Fork 4
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
Evaluate styleguide compliance validation tooling #34
Comments
In GitLab by @pvdbosch on May 17, 2019, 19:50 I also got some weird error on problem-v1.yaml:
I can't find the cause of this. Error seems to disappear when removing the allOf construct in InvalidParamProblem, but allOf doesn't cause problems when used in the main swagger file. |
Investigating if we'd rewrite the validation rules using spectral as tool, which is supported in stoplight studio. |
#34: remove styleguidevalidation-rules
I removed the styleguidevalidation-rules (+ maven plugin) from the guide. |
#34: remove styleguidevalidation-rules
Someone at Smals is working on this. There's also a tool by the developers of the openapi-generator:
Haven't checked yet how good it fits our needs. |
@wsalembi , Italy has worked out on online OpenAPI validation tool based on Spectral. Links: |
feedback from @wsalembi and colleagues:
|
EC provides a validation framework: Doesn't support REST guide validation rules, but framework might be extensible enough to fit it in. To investigate; consider reaching out? |
Progress has been made on the Java-based validation tool that can be executed from a maven plugin. @wsalembi will share the tool and its code with the WG participants for early feedback. The tools allows for extension with custom rules or deactivation of built-in rules. |
first versions of validation tool are released, internally on git/artifactory gcloud. CBSS is interested to take a look at it, and perhaps contribute. (there's also an openapi diff tool in development) |
@wsalembi will check if development of validation tool could be moved to GitHub (under Open Source license ASL 2.0). Binaries could be published then to maven central. Setup of github project can be done by CBSS participants. @wsalembi will already share the binaries within the WG manually in the meantime. |
I also found these: |
open-sourcing of the Smals tool will be followed up in #168; closing this issue |
In GitLab by @pvdbosch on May 17, 2019, 19:24
Provide tooling support to validate the compliance of OpenAPI to the styleguide, for checks that can be automated.
There was a PoC "styleguide-validationrules", but it was put on hold.
We're currently looking at using spectral.
Unsolved issues encountered when trying out the styleguide-validationrules:
SemanticError at paths./health.get: All 4xx and 5xx should link to "#/definitions/Problem"
. For the health resource we may return 503 with non-problem body. This exception to the rule should be added.SemanticError at b2b-env.ksz-bcss.fgov.be:4523: Should be in lowercase
- for validation of host value. Seems like a bug.SemanticError at $.info.version: The version number should be 'x.y'
. A version number "1.0.0" fails, while it should be supported as patch version is optionalThe text was updated successfully, but these errors were encountered: