Skip to content

[validate-examples] Example validation fails to validate resource IDs for location-based resources #1074

@tsatam

Description

@tsatam

Location-based resources (e.g. defined via the @locationResource decorator in TypeSpec) have a resource ID following the format /subscriptions/{subscriptionId}/locations/{location}/providers/Microsoft.Contoso/employees.

The current arm-id format does not allow such resource IDs: https://github.com/Azure/oav/blob/develop/lib/swaggerValidator/ajv.ts#L137-L146, and will cause examples for these resources to fail validation on their id property with INVALID_FORMAT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions