Skip to content

Fixed regex pattern used for annotations in OEM extensions#519

Open
mraineri wants to merge 1 commit intomainfrom
OEM-Integrator-Annotation-Pattern-Fix
Open

Fixed regex pattern used for annotations in OEM extensions#519
mraineri wants to merge 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>
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