Skip to content

Bug: In wrap manifest, generic map type has extra values outside the spec #1729

@krisbitney

Description

@krisbitney

Describe the bug
The value property in MapDefinition is supposed to be a GenericDefinition. However, the WRAP manifest for the map-type test case has a MapDefinition with a value property that has extra properties attached.

              "value": {
                "type": "Map<String, Int>",
                "name": "nestedMap",
                "key": {
                  "name": "nestedMap",
                  "type": "String",
                  "required": true,
                  "kind": 4
                },
                "value": {
                  "name": "nestedMap",
                  "type": "Int",
                  "required": true,
                  "kind": 4
                },
                "required": true,
                "scalar": {
                  "name": "nestedMap",
                  "type": "Int",
                  "required": true,
                  "kind": 4
                },
                "kind": 262146
              },

Expected behavior
I would expect the manifest to strictly follow the spec. Deviations from the spec can cause problems in statically typed languages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions