Skip to content

Conversation

@mashizora
Copy link

Add support for additionalProperties in typescript output target.

Example

JSON Typedef:

{
    "properties": {
        "name": { "type": "string" },
        "isAdmin": { "type": "boolean" }
    },
    "additionalProperties": true
}

Generated TypeScript code:

export interface Root {
  isAdmin: boolean;
  name: string;
  [x: string]: unknown;
}

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant