[OLS-562] Add schema version to ols-ucentral-schema

Add a schema.json version file similar to AP in wlan-ucentral-schema

Enhance connect.capabilties.yml to include both the switch and schema versions

  version:
    type: object
    description:
      Switch version info, OLS release and schema.
    properties:
      switch:
        type: object
        description: the ols release of this Switch
        properties:
          major:
            type: integer
          minor:
            type: integer
          patch:
            type: integer
        examples:
        - 'major': 3
          'minor': 2
          'patch': 0
      schema:
        type: object
        description: the schema version used for this ols release.
        properties:
          major:
            type: integer
          minor:
            type: integer
          patch:
            type: integer
        examples:
        - 'major': 3
          'minor': 2
          'patch': 0

Signed-off-by: Mike Hansen <mike.hansen@netexperience.com>
This commit is contained in:
Mike Hansen
2025-01-22 19:17:23 -05:00
parent adeeb0457b
commit b148155dea
6 changed files with 88 additions and 32 deletions

View File

@@ -15,18 +15,36 @@ properties:
version:
type: object
description:
The ols schema version to be used with this Switch
Switch version info, OLS release and schema.
properties:
major:
type: integer
minor:
type: integer
patch:
type: integer
examples:
- 'major': 3
'minor': 2
'patch': 0
switch:
type: object
description: the ols client version for this Switch
properties:
major:
type: integer
minor:
type: integer
patch:
type: integer
examples:
- 'major': 3
'minor': 2
'patch': 0
schema:
type: object
description: the ols schema version used with the ols client.
properties:
major:
type: integer
minor:
type: integer
patch:
type: integer
examples:
- 'major': 3
'minor': 2
'patch': 0
platform:
type: string
enum:

View File

@@ -114,4 +114,4 @@
<span class=w> </span><span class=s2>&quot;system.ntp.server&quot;</span><span class=p>,</span>
<span class=w> </span><span class=s2>&quot;1.openwrt.pool.ntp.org&quot;</span>
<span class=p>]</span>
</pre></div> </div> </div> </div> </div> </div> </div> </div> <div class=accordion id=accordionthird-party> <div class=card> <div class=card-header id=headingthird-party> <h2 class=mb-0> <button class="btn btn-link property-name-button" type=button data-toggle=collapse data-target=#third-party aria-expanded aria-controls=third-party onclick="setAnchor('#third-party')"><span class=property-name>third-party</span></button> </h2> </div> <div id=third-party class="collapse property-definition-div" aria-labelledby=headingthird-party data-parent=#accordionthird-party> <div class="card-body pl-5"> <div class=breadcrumbs>root <svg width=1em height=1em viewbox="0 0 16 16" class="bi bi-arrow-right-short" fill=currentColor xmlns=http://www.w3.org/2000/svg> <path fill-rule=evenodd d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/> </svg> <a href=#third-party onclick="anchorLink('third-party')">third-party</a></div><span class="badge badge-dark value-type">Type: object</span><br> <div class=accordion id=accordionthird-party_additionalProperties> <div class=card> <div class=card-header id=headingthird-party_additionalProperties> <h2 class=mb-0> <button class="btn btn-link property-name-button" type=button data-toggle=collapse data-target=#third-party_additionalProperties aria-expanded aria-controls=third-party_additionalProperties onclick="setAnchor('#third-party_additionalProperties')"><em><span class=property-name>Additional Properties</span></em></button> </h2> </div> <div id=third-party_additionalProperties class="collapse property-definition-div" aria-labelledby=headingthird-party_additionalProperties data-parent=#accordionthird-party_additionalProperties> <div class="card-body pl-5"><p class=additional-properties>Additional Properties of any type are allowed.</p> <div class=breadcrumbs>root <svg width=1em height=1em viewbox="0 0 16 16" class="bi bi-arrow-right-short" fill=currentColor xmlns=http://www.w3.org/2000/svg> <path fill-rule=evenodd d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/> </svg> <a href=#third-party onclick="anchorLink('third-party')">third-party</a> <svg width=1em height=1em viewbox="0 0 16 16" class="bi bi-arrow-right-short" fill=currentColor xmlns=http://www.w3.org/2000/svg> <path fill-rule=evenodd d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/> </svg> <a href=#third-party_additionalProperties onclick="anchorLink('third-party_additionalProperties')">additionalProperties</a></div><span class="badge badge-dark value-type">Type: object</span><br> </div> </div> </div> </div> </div> </div> </div> </div> <footer> <p class=generated-by-footer>Generated using <a href=https://github.com/coveooss/json-schema-for-humans>json-schema-for-humans</a> on 2025-01-09 at 09:49:47 -0500</p> </footer></body> </html>
</pre></div> </div> </div> </div> </div> </div> </div> </div> <div class=accordion id=accordionthird-party> <div class=card> <div class=card-header id=headingthird-party> <h2 class=mb-0> <button class="btn btn-link property-name-button" type=button data-toggle=collapse data-target=#third-party aria-expanded aria-controls=third-party onclick="setAnchor('#third-party')"><span class=property-name>third-party</span></button> </h2> </div> <div id=third-party class="collapse property-definition-div" aria-labelledby=headingthird-party data-parent=#accordionthird-party> <div class="card-body pl-5"> <div class=breadcrumbs>root <svg width=1em height=1em viewbox="0 0 16 16" class="bi bi-arrow-right-short" fill=currentColor xmlns=http://www.w3.org/2000/svg> <path fill-rule=evenodd d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/> </svg> <a href=#third-party onclick="anchorLink('third-party')">third-party</a></div><span class="badge badge-dark value-type">Type: object</span><br> <div class=accordion id=accordionthird-party_additionalProperties> <div class=card> <div class=card-header id=headingthird-party_additionalProperties> <h2 class=mb-0> <button class="btn btn-link property-name-button" type=button data-toggle=collapse data-target=#third-party_additionalProperties aria-expanded aria-controls=third-party_additionalProperties onclick="setAnchor('#third-party_additionalProperties')"><em><span class=property-name>Additional Properties</span></em></button> </h2> </div> <div id=third-party_additionalProperties class="collapse property-definition-div" aria-labelledby=headingthird-party_additionalProperties data-parent=#accordionthird-party_additionalProperties> <div class="card-body pl-5"><p class=additional-properties>Additional Properties of any type are allowed.</p> <div class=breadcrumbs>root <svg width=1em height=1em viewbox="0 0 16 16" class="bi bi-arrow-right-short" fill=currentColor xmlns=http://www.w3.org/2000/svg> <path fill-rule=evenodd d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/> </svg> <a href=#third-party onclick="anchorLink('third-party')">third-party</a> <svg width=1em height=1em viewbox="0 0 16 16" class="bi bi-arrow-right-short" fill=currentColor xmlns=http://www.w3.org/2000/svg> <path fill-rule=evenodd d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/> </svg> <a href=#third-party_additionalProperties onclick="anchorLink('third-party_additionalProperties')">additionalProperties</a></div><span class="badge badge-dark value-type">Type: object</span><br> </div> </div> </div> </div> </div> </div> </div> </div> <footer> <p class=generated-by-footer>Generated using <a href=https://github.com/coveooss/json-schema-for-humans>json-schema-for-humans</a> on 2025-01-22 at 19:16:40 -0500</p> </footer></body> </html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

5
schema.json Normal file
View File

@@ -0,0 +1,5 @@
{
"major": 3,
"minor": 2,
"patch": 7
}

View File

@@ -17,25 +17,53 @@
},
"version": {
"type": "object",
"description": "The ols schema version to be used with this Switch",
"description": "Switch version info, OLS release and schema.",
"properties": {
"major": {
"type": "integer"
"switch": {
"type": "object",
"description": "the ols client version for this Switch",
"properties": {
"major": {
"type": "integer"
},
"minor": {
"type": "integer"
},
"patch": {
"type": "integer"
}
},
"examples": [
{
"major": 3,
"minor": 2,
"patch": 0
}
]
},
"minor": {
"type": "integer"
},
"patch": {
"type": "integer"
"schema": {
"type": "object",
"description": "the ols schema version used with the ols client.",
"properties": {
"major": {
"type": "integer"
},
"minor": {
"type": "integer"
},
"patch": {
"type": "integer"
}
},
"examples": [
{
"major": 3,
"minor": 2,
"patch": 0
}
]
}
},
"examples": [
{
"major": 3,
"minor": 2,
"patch": 0
}
]
}
},
"platform": {
"type": "string",