Skip to content

Commit 5b3f31c

Browse files
author
Jesse Haigh
committed
update RenderNode.spec to reflect using Range<Position> in LineAnnotation
1 parent 96fe662 commit 5b3f31c

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

Sources/SwiftDocC/Model/Rendering/Content/RenderBlockContent.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,6 @@ public enum RenderBlockContent: Equatable {
160160
var character: Int?
161161
}
162162

163-
//public struct Range: Equatable, Codable {
164-
// var start: Position
165-
// var end: Position
166-
//}
167-
168163
public struct LineAnnotation: Equatable, Codable {
169164
var style: String
170165
var range: Range<Position>

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

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -789,18 +789,10 @@
789789
"enum": ["highlight", "strikeout"]
790790
},
791791
"range": {
792-
"$ref": "#/components/schemas/CharacterRange"
793-
}
794-
}
795-
},
796-
"CharacterRange": {
797-
"type": "object",
798-
"properties": {
799-
"start": {
800-
"$ref": "#/components/schemas/Position"
801-
},
802-
"end": {
803-
"$ref": "#/components/schemas/Position"
792+
"type": "array",
793+
"items": {
794+
"$ref": "#/components/schemas/Position"
795+
}
804796
}
805797
}
806798
},

0 commit comments

Comments
 (0)