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

Support multiple types for const #28

Merged
merged 1 commit into from
May 29, 2024

Conversation

billyshambrook
Copy link
Contributor

Support other types for const. Used in the following use case:

# @schema
# type: object
# required: true
# if:
#   properties:
#     enabled:
#       const: true
# then:
#   properties:
#     port:
#       required: true
# @schema
metrics:
  
  # @schema
  # type: boolean
  # required: true
  # @schema
  # -- Enable metrics
  enabled: false
  
  # @schema
  # type: integer
  # @schema
  # -- Port to listen on
  port:

@dadav
Copy link
Owner

dadav commented May 29, 2024

Nice pr, thank you

@dadav dadav merged commit bdf7656 into dadav:main May 29, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants