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

InfluxDB 2.0: Label schema has to have defined properties as dictionary [area/api] #12482

Closed
bednar opened this issue Mar 11, 2019 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@bednar
Copy link
Contributor

bednar commented Mar 11, 2019

The Label schema has defined properties as:

Key/Value pairs associated with this label. Keys can be removed by sending an update with an empty value.

but there is missing additionalProperties as is specified in OpenAPI 3 specification for dictionaries. The Label schema has to be defined in this way:

Label:
      type: object
      properties:
        id:
          readOnly: true
          type: string
        name:
          type: string
        properties:
          type: object
          additionalProperties:
            type: string
          description: Key/Value pairs associated with this label. Keys can be removed by sending an update with an empty value.
          example: {"color": "ffb3b3", "description": "this is a description"}
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

3 participants