Skip to content

Commit

Permalink
feat(cli): Add inline property to type references from properties i…
Browse files Browse the repository at this point in the history
…n Fern definition with OpenAPI importer (fern-api#5248)

Add support for inline in Fern definition and IR + update OpenAPI importer to configure inline in Fern definition
  • Loading branch information
Swimburger authored Nov 27, 2024
1 parent 399772a commit 9770c58
Show file tree
Hide file tree
Showing 265 changed files with 21,432 additions and 1,540 deletions.
50 changes: 50 additions & 0 deletions fern.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,16 @@
}
]
},
"inline": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"docs": {
"oneOf": [
{
Expand Down Expand Up @@ -700,6 +710,16 @@
}
]
},
"inline": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"docs": {
"oneOf": [
{
Expand Down Expand Up @@ -1033,6 +1053,16 @@
}
]
},
"inline": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"docs": {
"oneOf": [
{
Expand Down Expand Up @@ -1189,6 +1219,16 @@
}
]
},
"inline": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"docs": {
"oneOf": [
{
Expand Down Expand Up @@ -1274,6 +1314,16 @@
}
]
},
"inline": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"docs": {
"oneOf": [
{
Expand Down
52 changes: 26 additions & 26 deletions fern/apis/fern-definition/definition/commons.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
imports:
imports:
availability: availability.yml

types:
WithDocsSchema:
properties:
types:
WithDocsSchema:
properties:
docs: optional<string>
WithName:
properties:

WithName:
properties:
name: optional<string>
WithAvailability:
properties:

WithAvailability:
properties:
availability: optional<availability.AvailabilityUnionSchema>
WithDisplayName:
properties:

WithDisplayName:
properties:
display-name: optional<string>
WithAudiences:
properties:

WithAudiences:
properties:
audiences: optional<list<string>>
DeclarationSchema:
extends:

DeclarationSchema:
extends:
- WithDocsSchema
- WithAvailability
- WithAudiences
DeclarationWithoutDocsSchema:
extends:

DeclarationWithoutDocsSchema:
extends:
- WithAvailability
- WithAudiences
DeclarationWithNameSchema:
extends:

DeclarationWithNameSchema:
extends:
- DeclarationSchema
- WithName
- WithName
Loading

0 comments on commit 9770c58

Please sign in to comment.