Skip to content

Invalid type in ConfigurationSchema.json #3970

@Plasmadog

Description

@Plasmadog

Describe the bug

In the file extensions/src/AWSSDK.Extensions.NETCore.Setup/Schema/ConfigurationSchema.json, the value given for ThrottleRetries.type is bool. This should be boolean. A schema file that incorporates this segment will be invalid.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

The generated appsettingsschema.json file should itself comply with the relevant schema and not raise warnings.

Current Behavior

I am constantly getting warnings about my generated appsettingsschema.json file:

There are problems with this document's schema impacting one or more items in the document. Please report this issue to schema owner.

    Value must conform to at least one of the associated schemas
    |   Value must be one of the following values: "array", "boolean", "integer", "null", "number", "object", "string"
    |   or
    |   Value must be one of the following types: array

Reproduction Steps

As far as I know, simply referencing the AWSSDK package in an ASP.Net project will trigger inclusion of this schema and therefore generate the warning. In VS 2022, I see the warning when I open my appsettings.json file; it appears in the Output panel as output from JSON.

Possible Solution

Simply change bool to boolean, as has been used everywhere else in the same file.

Additional Information/Context

No response

AWS .NET SDK and/or Package version used

AWSSDK.Extensions.NETCore.Setup 4.0.0

Targeted .NET Platform

.Net 9

Operating System and version

Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions