Skip to content
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

Can't update to latest online schemas (have errors) #1733

Open
StephenWeatherford opened this issue Jul 17, 2024 · 3 comments
Open

Can't update to latest online schemas (have errors) #1733

StephenWeatherford opened this issue Jul 17, 2024 · 3 comments
Milestone

Comments

@StephenWeatherford
Copy link
Contributor

No description provided.

@StephenWeatherford
Copy link
Contributor Author

I've updated to the latest schema that still works (about April or May), but can't update past that until this issue is resolved.

@StephenWeatherford StephenWeatherford changed the title Newest online schemas cause errors if we package them Newest online schemas cause errors if we update to them Jul 17, 2024
@StephenWeatherford StephenWeatherford changed the title Newest online schemas cause errors if we update to them Can't update to latest online schemas (have errors) Jul 25, 2024
@StephenWeatherford StephenWeatherford added this to the v0.15.13 milestone Jul 25, 2024
@StephenWeatherford StephenWeatherford modified the milestones: v0.15.13, v0.15.14 Nov 8, 2024
@StephenWeatherford
Copy link
Contributor Author

{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {},
    "functions": [],
    "variables": {},
    "resources": [],
    "outputs": {}
}
[Error - 4:27:28 PM] There are problems with this document's schema impacting one or more items in the document. Please report this issue to schema owner.

[Error - 4:27:28 PM]     Value must conform to at least one of the associated schemas
    |   Referenced item does not validate against the current schema.
    |   The issue encountered is "There must be at least 1 and at most 9223372036854775807 items defined in the array" at ../2023-05-17-preview/Microsoft.AzureActiveDirectory.json#/resourceDefinitions/ciamDirectories/properties/location/oneOf/0/enum at #/resourceDefinitions/ciamDirectories/properties/location/oneOf/0/enum
    |   or
    |   Value must be one of the following types: array
    at (line 530, column 5) in document https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json
    at schema text "resource"

[Error - 4:27:28 PM]     Value must conform to at least one of the associated schemas
    |   Value must be one of the following types: boolean
    |   or
    |   Referenced item does not validate against the current schema.
    |   The issue encountered is "There must be at least 1 and at most 9223372036854775807 items defined in the array" at ../2023-05-17-preview/Microsoft.AzureActiveDirectory.json#/resourceDefinitions/ciamDirectories/properties/location/oneOf/0/enum at #/resourceDefinitions/ciamDirectories/properties/location/oneOf/0/enum
    at (line 530, column 5) in document https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json
    at schema text "resource"

[Info  - 4:27:28 PM] Published 1 errors, 0 warnings for untitled:Untitled-2

@StephenWeatherford
Copy link
Contributor Author

StephenWeatherford commented Nov 9, 2024

https://github.com/azure-sdk/azure-resource-manager-schemas/blob/15d504e64a9a17449eacf9c9195012b5f9beb452/schemas/2023-05-17-preview/Microsoft.AzureActiveDirectory.json

Looks to be this:

    "location": {
      "description": "The location in which the resource is hosted and data resides. Can be one of 'United States', 'Europe', 'Asia Pacific', or 'Australia'. Refer to [this documentation](https://aka.ms/ciam-data-location) for more information.",
      "oneOf": [
        {
          **"enum": [],**
          "type": "string"
        },
        {
          "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
        }
      ]
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants