Skip to content

Commit 2cb2c98

Browse files
authored
Merge branch 'main' into navigator-index-variants
2 parents 9718d3f + 8da9448 commit 2cb2c98

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

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

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,6 +1865,12 @@
18651865
"items": {
18661866
"$ref": "#/components/schemas/RenderNodeVariant"
18671867
}
1868+
},
1869+
"variantOverrides": {
1870+
"type": "array",
1871+
"items": {
1872+
"$ref": "#/components/schemas/VariantOverride"
1873+
}
18681874
}
18691875
}
18701876
},
@@ -1896,6 +1902,85 @@
18961902
}
18971903
]
18981904
},
1905+
"VariantOverride": {
1906+
"type": "object",
1907+
"required": [
1908+
"traits",
1909+
"patch"
1910+
],
1911+
"properties": {
1912+
"traits": {
1913+
"type": "array",
1914+
"items": {
1915+
"$ref": "#/components/schemas/RenderNodeVariantTrait"
1916+
}
1917+
},
1918+
"patch": {
1919+
"$ref": "#/components/schemas/JSONPatch"
1920+
}
1921+
}
1922+
},
1923+
"JSONPatch": {
1924+
"type": "array",
1925+
"items": {
1926+
"oneOf": [
1927+
{
1928+
"type": "object",
1929+
"required": [
1930+
"op",
1931+
"path",
1932+
"value"
1933+
],
1934+
"properties": {
1935+
"op": {
1936+
"type": "string",
1937+
"enum": ["add", "test"]
1938+
},
1939+
"path": {
1940+
"type": "string"
1941+
},
1942+
"value": {}
1943+
}
1944+
},
1945+
{
1946+
"type": "object",
1947+
"required": [
1948+
"op",
1949+
"path"
1950+
],
1951+
"properties": {
1952+
"op": {
1953+
"type": "string",
1954+
"enum": ["remove"]
1955+
},
1956+
"path": {
1957+
"type": "string"
1958+
}
1959+
}
1960+
},
1961+
{
1962+
"type": "object",
1963+
"required": [
1964+
"op",
1965+
"path",
1966+
"from"
1967+
],
1968+
"properties": {
1969+
"op": {
1970+
"type": "string",
1971+
"enum": ["move", "copy"]
1972+
},
1973+
"path": {
1974+
"type": "string"
1975+
},
1976+
"from": {
1977+
"type": "string"
1978+
}
1979+
}
1980+
}
1981+
]
1982+
}
1983+
},
18991984
"TraitInterfaceLanguage": {
19001985
"required": [
19011986
"interfaceLanguage"

0 commit comments

Comments
 (0)