Skip to content

Fixed regex pattern used for annotations in OEM extensions#519

Merged
mraineri merged 1 commit intomainfrom
OEM-Integrator-Annotation-Pattern-Fix
Feb 6, 2026
Merged

Fixed regex pattern used for annotations in OEM extensions#519
mraineri merged 1 commit intomainfrom
OEM-Integrator-Annotation-Pattern-Fix

Conversation

@mraineri
Copy link
Contributor

@mraineri mraineri commented Feb 3, 2026

Someone internal showed me the output of an inserted OEM extension and the resultant pattern was not aligned with the annotations pattern we use elsewhere.

This was showing up in the final yaml output at the end of the toolchain:

      x-patternProperties:
        ^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$:
          description: This property shall specify a valid odata or Redfish property.

The extra slash after Message results in it searching for a slash followed by any character, when the intent is to escape the . character to indicate we're searching for a . character.

The intended output should be:

      x-patternProperties:
        ^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\.[a-zA-Z_][a-zA-Z0-9_]*$:
          description: This property shall specify a valid odata or Redfish property.

Signed-off-by: Mike Raineri <michael.raineri@dell.com>
@mraineri
Copy link
Contributor Author

mraineri commented Feb 6, 2026

Approved 2/6

@mraineri mraineri merged commit 1a9ac01 into main Feb 6, 2026
2 checks passed
@mraineri mraineri deleted the OEM-Integrator-Annotation-Pattern-Fix branch February 6, 2026 20:40
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.

1 participant