Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

osprey does not honor maxProperties #222

Open
rohshall opened this issue Feb 8, 2021 · 0 comments
Open

osprey does not honor maxProperties #222

rohshall opened this issue Feb 8, 2021 · 0 comments

Comments

@rohshall
Copy link

rohshall commented Feb 8, 2021

We have a POST body defined like this:

 - loginRequest: |
      {
        "$schema": "http://json-schema.org/draft-04/schema",
        "type": "object",
        "properties": {
          "userName": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "pattern": "^[^@]+@[^@]+$"
          }
        },
        "minProperties": 1,
        "maxProperties": 1,
        "additionalProperties": true
      }

So, if we provide both userName and email, it should reject the request with 400. But, it does not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant