Skip to content

postTransform would be more useful with schema information #2013

Closed
@duncanbeevers

Description

@duncanbeevers

Description

The postTransform option is handed the ts types as they're generated from each OpenAPI schema member in transformSchemaObject.
However, although there is a 1:1 mapping between calls to the postTransform, and OpenAPI schema members, postTransform has no access to the OpenAPI schema object associated with the generated ts node.

I think postTransform would be more useful if it gave access to the schema node, and it should be added to the options argument, passed to postTransform, along with path and ctx.

Checklist

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopenapi-tsRelevant to the openapi-typescript library

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions