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

Handle schema mixed data type #36

Closed
quangkhoa opened this issue May 11, 2017 · 0 comments
Closed

Handle schema mixed data type #36

quangkhoa opened this issue May 11, 2017 · 0 comments
Assignees
Labels

Comments

@quangkhoa
Copy link
Contributor

Currently the app does not render schema elements that have mixed data type, e.g.

"customAttributes": {
  "default": [],
  "type": "array",
  "items": {
    "type": "object",
    "required": [
      "key",
      "value"
    ],
    "properties": {
      "key": {
        "type": "string",
        "pattern": "^[a-zA-Z0-9_-]+$"
      },
      "value": {
        "type": [
          "number",
          "integer",
          "string",
          "boolean"
        ]
      }
    },
    "additionalProperties": false
  }
}

The app should be able to render the element, as below

image

@quangkhoa quangkhoa added the UI label May 11, 2017
@quangkhoa quangkhoa added the v1 label May 12, 2017
@brendo brendo self-assigned this May 25, 2017
brendo pushed a commit to brendo/open-api-renderer that referenced this issue May 26, 2017
quangkhoa added a commit that referenced this issue May 26, 2017
brendo pushed a commit to brendo/open-api-renderer that referenced this issue Jun 20, 2017
brendo pushed a commit to brendo/open-api-renderer that referenced this issue Jun 20, 2017
brendo pushed a commit to brendo/open-api-renderer that referenced this issue Jun 20, 2017
brendo pushed a commit to brendo/open-api-renderer that referenced this issue Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants