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

making changes for supporting oid format #459

Merged
merged 3 commits into from
Jan 16, 2024
Merged

Conversation

Vibaswan
Copy link
Collaborator

@Vibaswan Vibaswan commented Jan 11, 2024

Support for OID pattern:
Can be used with as format for normal properties as well as in x-field-pattern
sample:

     oid:
       type: string
       format: oid
       x-field-uid: 9
          
     OidPattern:
      description: Test oid pattern
      type: object
      properties:
        oid:
          x-field-pattern:
            format: oid
            default: "0.1"
          x-field-uid: 1

Validation imposed:

  • A string separated by . with minimum segments of two
  • Each and every segment of the string should be numeric
  • Each number should be in the range of 0 to 2^32-1

@Vibaswan Vibaswan requested a review from ashutshkumr January 11, 2024 16:05
@ashutshkumr ashutshkumr merged commit a4e7964 into main Jan 16, 2024
13 checks passed
@ashutshkumr ashutshkumr deleted the support_for_oid_format branch January 16, 2024 10:36
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