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

Arrays minItems constraint not rendered #592

Closed
mohannad-musleh opened this issue Oct 21, 2021 · 0 comments
Closed

Arrays minItems constraint not rendered #592

mohannad-musleh opened this issue Oct 21, 2021 · 0 comments

Comments

@mohannad-musleh
Copy link

In the API request, if the attribute type is array and the attribute has a minItems constraint, the constraint is not rendered

Setup details:

Node: 14.16.0
NPM: 7.17.0
Bundler: vite 2.6.3
RapiDoc: 9.1.3 (from the CDN: https://unpkg.com/rapidoc@9.1.3/dist/rapidoc-min.js)

Example:

Schema:
{
  "components": {},
  "info": {
    "title": "Example Schema",
    "version": "0.0.1"
  },
  "openapi": "3.0.3",
  "paths": {
    "/api/v1/example": {
      "post": {
        "operationId": "v1_example",
        "description": "Example API",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "array_attribute": {
                    "type": "array",
                    "minItems": 10,
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "minimum": 20
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
Screenshot:

Screen Shot 2021-10-21 at 3 03 11 PM

@mrin9 mrin9 closed this as completed in 8822e9d Feb 24, 2022
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