Schema names
OpenAPI allows you to define inlined schemas that do not have names.
Inline type in openapi.yml
Fern automatically generates names for all the inlined schemas. For example, in this example,
Fern would generate the name CastItem
for the inlined array item schema.
Auto-generated name
If you want to override the generated name, you can use the extension x-fern-type-name
.
openapi.yml
This would replace CastItem
with Person
and the generated code would read more idiomatically:
Overridden name