Skip to content

responseSchema typing requires Enums, prefer string literals. #458

Open
@mfrancis107

Description

@mfrancis107

Description of the feature request:

This is an invalid type because you define responseSchema using enums.

responseSchema: {
            "type": "object",
            "properties": {
              "test": {
                "type": "string"
              }
            }
          }

We must do this to avoid type errors.

responseSchema: {
            "type": SchemaType.OBJECT,
            "properties": {
              "test": {
                "type": SchemaType.STRING
              }
            }
          }

What problem are you trying to solve with this feature?

No response

Any other information you'd like to share?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions