-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with upstream Swagger/JSON schemas #1453
Comments
We should push this back up to the Swagger repo at least (JSON schema ones we already have, for the most part) |
We should work with the upstream Swagger folks on this |
No change on the above - we should work towards resolving this issue in favor of fixing upstream Swagger issues and/or opening issues. |
@matthchr will go through the Swagger issues and convert them to issues on the azure-rest-api-specs repo |
No change from above -- Matt will work on this (it's on the list) |
No change from above |
This is a place to catalog issues we've noticed with upstream Swagger/JSON specs. Once we've got a large list we can submit PRs or Issues to the corresponding specs. Note that this isn't complete and should be combined with an examination of the
azure-arm.yaml
configuration file to see what other problems we are working around with config overrides.Issues with Swagger
Storage
StorageAccountPropertiesCreateParameters
is listed as optional on the spec, but really has a required fieldAccessTier
without which the account will not create successfully.StorageAccountsQueueServicesQueue
uses a regex that doesn’t conform to the JSON Schema recommendations and cannot be parsed by the Go stdlib (^[a-z0-9]([a-z0-9]|(-(?!-))){1,61}[a-z0-9]$
)Compute
anyOf
when we think they wantoneOf
. Affected types:extensions
(2015-08-01, 2017-03-30, 2017-12-01)extensionsChild
(2015-08-01, 2017-03-30, 2017-12-01)vmssExtensions
(2017-12-01)VirtualMachineScaleSetExtension
(2018-06-01, 2018-10-01, 2019-03-01, 2019-07-01)virtualMachines_extensions
(2018-06-01, 2018-10-01, 2019-03-01, 2019-07-01)virtualMachineScaleSets_extensions
(2018-06-01, 2018-10-01, 2019-03-01, 2019-07-01)VirtualMachineScaleSetIPConfiguration
inheritsId
fromSubResource
, but as far as I can tell that Id field isn't actually ever used in a PUT. If that's the ID of the ARM resource created by the PUT (and no other way?) then it should be readonly? The whole "can only make this resource as a property of another resource" is weird in general.SubResource
is used directly (as a property or something), it's meaning is that of a reference. When it's used via inheritance, then the reference is to self.Container Services
ContainerServiceWindowsProfile
andManagedClusterWindowsProfile
use a regex that doesn’t conform to the JSON Schema recommendations and cannot be parsed by the Go stdlib (^(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\\^&\\*\\(\\)])[a-zA-Z\\d!@#$%\\^&\\*\\(\\)]{12,123}$
)Healthcare
UsesanyOf
when we think they wantoneOf
. Affected types (in 2019-09-16):ServiceCorsConfigurationInfo
Not present any more as of this commit.
Insights
UsesanyOf
when we think they wantoneOf
. Affected types (in 2016-03-01):RuleDataSource
RuleCondition
RuleAction
Not present any more as of this commit.
2020-02-02
REST API for components hascomponent.workspaceId
documented as required but not actually marked required in the schema. In reality it is not required as far as I can tell, so it's just a documentation issue.2018-05-01-preview
API says there are only 2 allowed fields for kind, but in reality there are at least a few more,standard
is one of the additional ones. Actually you can see this in the otherkind
defined in this file. I think the issue is they should just prune the top levelkind
in the WebTest.KeyVault
anyOf
when we think they wantoneOf
. Affected types (in 2015-06-01):permissions
Fixed in 2016-10-01.
RecoveryServices
anyOf
when we think they wantoneOf
. Affected types (in 2018-01-10):FabricSpecificCreationInput
EnableProtectionProviderSpecificInput
FabricSpecificCreateNetworkMappingInput
PolicyProviderSpecificInput
RecoveryPlanActionDetails
Sendgrid
anyOf
when we think they wantoneOf
. Affected types (in 2015-01-01):accounts
ServiceBus
SBNamespaceProperties
in2021-01-01-preview
APIVersion hasprivateEndpointConnections
which should be marked readOnly but isn't.Issues with JSON Schema
Common
i.e. in
https://schema.management.azure.com/schemas/common/definitions.json
anyOf
when we think they wantoneOf
. Affected types:resourceLocations
Network
ProvisioningState
in its specThe text was updated successfully, but these errors were encountered: