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

[ZEN-3765] Example Data: Validate examples against OpenAPI Schema Object #486

Merged
merged 8 commits into from
Apr 9, 2019

Commits on Mar 20, 2019

  1. [ZEN-3017] OAS3 Level 3 Validation: Schema Objects, examples, alignme…

    …nt with OAS conformance suite
    
    Add preliminary support for example validation in OpenAPI3 and Swagger.
    ghillairet committed Mar 20, 2019
    Configuration menu
    Copy the full SHA
    0f907c7 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2019

  1. [ZEN-3017] OAS3 Level 3 Validation: Schema Objects, examples, alignme…

    …nt with OAS conformance suite
    
    This adds normalization of schemas present in Swagger/OpenAPI. When an example is detected, the object being it's schema is passed through the normalizer to be transformed into a single object where all references are resolved.
    This also extends the validation preferences for Swagger/OpenAPI to add an option to enable example validation. This option is set to false by default.
    ghillairet committed Mar 21, 2019
    Configuration menu
    Copy the full SHA
    7d7d609 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2019

  1. [ZEN-3017] OAS3 Level 3 Validation: Schema Objects, examples, alignme…

    …nt with OAS conformance suite
    
    Add extension point.
    ghillairet committed Apr 2, 2019
    Configuration menu
    Copy the full SHA
    1b6366c View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2019

  1. [ZEN-3017] OAS3 Level 3 Validation: Schema Objects, examples, alignme…

    …nt with OAS conformance suite
    
    Removing example validators as they will be implemented as extensions inside API Studio.
    Also modified the preference pages and initialisers so that that validation extensions can add and initialise their own values.
    ghillairet committed Apr 3, 2019
    Configuration menu
    Copy the full SHA
    1fbfd57 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2019

  1. [ZEN-3017] OAS3 Level 3 Validation: Schema Objects, examples, alignme…

    …nt with OAS conformance suite
    
    KZOE and API Studio both provide their own version of json-schema-validator and this is causing an exception to be thrown when a validator extension is created in API Studio and called from KZOE. To avoid this issue, all call to json-schema-validator should be done through the KZOE class `JsonSchemaValidator` that will execute the validation without exposing any json-schema-validator API.
    ghillairet committed Apr 4, 2019
    Configuration menu
    Copy the full SHA
    b9cc735 View commit details
    Browse the repository at this point in the history
  2. [ZEN-3017] OAS3 Level 3 Validation: Schema Objects, examples, alignme…

    …nt with OAS conformance suite
    
    Add the extension point `com.reprezen.swagedit.preferences` that allow clients to provide their own preferences to KaiZen editors.
    ghillairet committed Apr 4, 2019
    Configuration menu
    Copy the full SHA
    6ada1f4 View commit details
    Browse the repository at this point in the history
  3. [ZEN-3017] OAS3 Level 3 Validation: Schema Objects, examples, alignme…

    …nt with OAS conformance suite
    
    Add missing change in plugin.xml
    ghillairet committed Apr 4, 2019
    Configuration menu
    Copy the full SHA
    b882f4e View commit details
    Browse the repository at this point in the history
  4. [ZEN-3017] OAS3 Level 3 Validation: Schema Objects, examples, alignme…

    …nt with OAS conformance suite
    
    Fix wrong ID.
    ghillairet committed Apr 4, 2019
    Configuration menu
    Copy the full SHA
    b49243b View commit details
    Browse the repository at this point in the history