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

If a $ref is not found, a NoMethodError: any_of may be found #134

Open
jamietanna opened this issue Jun 16, 2022 · 1 comment
Open

If a $ref is not found, a NoMethodError: any_of may be found #134

jamietanna opened this issue Jun 16, 2022 · 1 comment

Comments

@jamietanna
Copy link

     NoMethodError:
       undefined method `any_of' for #<OpenAPIParser::Schemas::Reference:0x0000000107195548>
@hlascelles
Copy link

hlascelles commented Sep 13, 2022

We are seeing this too with:

          "tagging_strings": {
            "type": "array",
            "description": "A collection of strongs",
            "items": {
              "type": "string"
            },
            "example": [
              "foo",
              "bar"
            ]
          },

payload:

{
  "tagging_strings": ["baz"]
}

Stack:

undefined method `any_of' for #<OpenAPIParser::Schemas::Reference:0x000055eccf27f670>
openapi_parser-1.0.0/lib/openapi_parser/schema_validator.rb:98:in `validator'
openapi_parser-1.0.0/lib/openapi_parser/schema_validator.rb:74:in `validate_schema'
openapi_parser-1.0.0/lib/openapi_parser/schema_validator.rb:62:in `validate_data'
openapi_parser-1.0.0/lib/openapi_parser/schema_validator.rb:45:in `validate'
openapi_parser-1.0.0/lib/openapi_parser/schemas/media_type.rb:15:in `validate_parameter'
openapi_parser-1.0.0/lib/openapi_parser/schemas/request_body.rb:24:in `validate_request_body'
openapi_parser-1.0.0/lib/openapi_parser/schemas/operation.rb:25:in `validate_request_body'
openapi_parser-1.0.0/lib/openapi_parser/request_operation.rb:52:in `validate_request_body'

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

2 participants