Closed konrad-jamrozik closed 7 months ago
I believe the root cause is the additionalProperties
at the end of this line:
Potential fix (ensure @
is not null before dereferencing pointer):
&& @ && @.additionalProperties
Issues describing this behavior in spectral:
https://github.com/stoplightio/spectral/issues/1920 https://github.com/stoplightio/spectral/issues/2139
$ gh repo clone azure/azure-rest-api-specs-pr
$ gh pr checkout 18022
OR
$ git checkout 642e50f5d5110d2f345ca3cd9364de7ac35bbfe5
$ npx autorest --v3 --spectral --azure-validator --semantic-validator=false --model-validator=false
--message-format=json --openapi-type=arm --openapi-subtype=arm
--use=@microsoft.azure/openapi-validator@2.2.1 --tag=package-2023-11-preview
specification/network/resource-manager/readme.md
Context on Teams.
https://github.com/Azure/azure-rest-api-specs-pr/pull/18022
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3729857&view=logs&j=0574a2a6-2d0a-5ec6-40e4-4c6e2f70bea2&t=80c3e782-49f0-5d1c-70dd-cbee57bdd0c7
Raw log: