Skip to content

Commit 5370377

Browse files
authored
resolves mismatched in OpenAPI resource specs for type generation (#1239)
* fixes OpenAPI spec mismatches between require properties and available properties * updating specs with feedback
1 parent 70a8a0d commit 5370377

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

Sources/SwiftDocC/SwiftDocC.docc/Resources/LinkableEntities.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@
570570
"type": "string",
571571
"enum": ["icon", "card"]
572572
},
573-
"reference": {
573+
"identifier": {
574574
"type": "string",
575575
"format": "reference(ImageRenderReference)"
576576
}

Sources/SwiftDocC/SwiftDocC.docc/Resources/RenderNode.spec.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,7 @@
360360
"type": "object",
361361
"required": [
362362
"kind",
363-
"tiles",
364-
"content"
363+
"tiles"
365364
],
366365
"properties": {
367366
"kind": {
@@ -526,8 +525,7 @@
526525
"kind",
527526
"content",
528527
"media",
529-
"mediaPosition",
530-
"layout"
528+
"mediaPosition"
531529
],
532530
"properties": {
533531
"kind": {
@@ -1850,7 +1848,7 @@
18501848
"type": "string",
18511849
"enum": ["icon", "card"]
18521850
},
1853-
"reference": {
1851+
"identifier": {
18541852
"type": "string",
18551853
"format": "reference(ImageRenderReference)"
18561854
}
@@ -2011,7 +2009,7 @@
20112009
"type": "string",
20122010
"format": "reference(RenderReference)"
20132011
},
2014-
"sections": {
2012+
"kind": {
20152013
"type": "string",
20162014
"enum": ["task", "assessment", "heading"]
20172015
}
@@ -2547,7 +2545,6 @@
25472545
},
25482546
"MentionsRenderSection": {
25492547
"required": [
2550-
"kind",
25512548
"mentions"
25522549
],
25532550
"type": "object",

0 commit comments

Comments
 (0)