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

Ensure additionalProperty uses correct schema #190

Open
fiasco opened this issue Feb 2, 2023 · 0 comments
Open

Ensure additionalProperty uses correct schema #190

fiasco opened this issue Feb 2, 2023 · 0 comments

Comments

@fiasco
Copy link

fiasco commented Feb 2, 2023

I opened PR #187 to address this. Reposting here:

I encountered this issue when attempting to validate data against this schema:

EnvironmentFlags:
      type: object
      description: An array of various flags that indicate functionality associated with the environment.
      additionalProperties:
        type: object
        properties:
          cde:
            type: boolean
            description: Determines if the environment is on-demand.

The Properties::validate() method currently attempts to validate additionalProperties by their parent definition which results in an error which validating valid data.

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

No branches or pull requests

1 participant