oav
oav copied to clipboard
Tools for validating OpenAPI (Swagger) files.
It seems in one of the recent updates this format type isnt allowed anymore, was this intentional and if so is there an equivalent that should be used?
An example of inconsistency creeping in to swagger specs that this would address is enum values where one service declares their version of the acceptable enum values as "SystemAssigned, UserAssigned"...
`oav` should issue an error message for a property that is defined as the discriminator for a schema when it is an extensible enum, I.e.`x-ms-enum: { modelAsString: true }`, because...
In some data-plane RBAC authoring like https://github.com/Azure/azure-rest-api-specs/blob/2132eeb6ded5dab7a175dd529adcf0ff6e4b5c78/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.4-preview.1/rbac.json#L38 a double slash is possible because the scope can be "/" but the service - like ARM itself - does handle this case....
## Describe the bug I ran the command: ``` autorest --input-file=edgeRouter.json --input-file=operation.json --model-validator=true ``` This gave the following output: ``` AutoRest code generation utility [cli version: 3.2.0; node: v14.16.1, max-memory:...
Hi, we are getting an error running the oav validate-spec and validate-example. This is the error ``` error: { message: 'internal error: model cannot be null or undefined and must...