瀏覽代碼

Adding JSON schema changes to implement and within the generated schema template per issue #15555

Daniel W. Anner 2 年之前
父節點
當前提交
699dd72597
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 2 0
      contrib/generated_schema.json
  2. 2 0
      netbox/templates/extras/schema/devicetype_schema.jinja2

+ 2 - 0
contrib/generated_schema.json

@@ -1,5 +1,7 @@
 {
     "type": "object",
+    "$id": "urn:devicetype-library:generated-schema",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
     "additionalProperties": false,
     "definitions": {
         "airflow": {

+ 2 - 0
netbox/templates/extras/schema/devicetype_schema.jinja2

@@ -1,5 +1,7 @@
 {
   "type": "object",
+  "$id": "urn:devicetype-library:generated-schema",
+  "$schema": "https://json-schema.org/draft/2020-12/schema",
   "additionalProperties": false,
   "definitions": {
     "airflow": {