Advertisement
Guest User

YosemiteSchema

a guest
Jun 29th, 2022
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.85 KB | None | 0 0
  1. {
  2. "definitions": {},
  3. "$schema": "http://json-schema.org/draft-07/schema#",
  4. "$id": "https://example.com/object1655996851.json",
  5. "title": "Root",
  6. "type": "object",
  7. "required": [
  8. "site_group"
  9. ],
  10. "properties": {
  11. "site_group": {
  12. "$id": "#root/site_group",
  13. "title": "Site_group",
  14. "type": "object",
  15. "required": [
  16. "campus_name",
  17. "interval",
  18. "name",
  19. "organisation_name",
  20. "outputs",
  21. "project_name",
  22. "sites"
  23. ],
  24. "properties": {
  25. "campus_name": {
  26. "$id": "#root/site_group/campus_name",
  27. "title": "Campus_name",
  28. "type": "string",
  29. "default": "",
  30. "examples": [
  31. "eco_homes"
  32. ],
  33. "pattern": "^.*$"
  34. },
  35. "interval": {
  36. "$id": "#root/site_group/interval",
  37. "title": "Interval",
  38. "type": "integer",
  39. "examples": [
  40. 60
  41. ],
  42. "default": 60
  43. },
  44. "name": {
  45. "$id": "#root/site_group/name",
  46. "title": "Name",
  47. "type": "string",
  48. "default": "",
  49. "examples": [
  50. "st_modwen_heathy_wood"
  51. ],
  52. "pattern": "^.*$"
  53. },
  54. "organisation_name": {
  55. "$id": "#root/site_group/organisation_name",
  56. "title": "Organisation_name",
  57. "type": "string",
  58. "default": "",
  59. "examples": [
  60. "st_modwen"
  61. ],
  62. "pattern": "^.*$"
  63. },
  64. "outputs": {
  65. "$id": "#root/site_group/outputs",
  66. "title": "Outputs",
  67. "type": "array",
  68. "default": [],
  69. "items":{
  70. "$id": "#root/site_group/outputs/items",
  71. "title": "Items",
  72. "type": "object",
  73. "required": [
  74. "PostgresOutput"
  75. ],
  76. "properties": {
  77. "PostgresOutput": {
  78. "$id": "#root/site_group/outputs/items/PostgresOutput",
  79. "title": "Postgresoutput",
  80. "type": "object",
  81. "required": [
  82. "settings"
  83. ],
  84. "properties": {
  85. "settings": {
  86. "$id": "#root/site_group/outputs/items/PostgresOutput/settings",
  87. "title": "Settings",
  88. "type": "object",
  89. "required": [
  90. "database",
  91. "host",
  92. "password",
  93. "port",
  94. "user"
  95. ],
  96. "properties": {
  97. "database": {
  98. "$id": "#root/site_group/outputs/items/PostgresOutput/settings/database",
  99. "title": "Database",
  100. "type": "string",
  101. "default": "",
  102. "examples": [
  103. "bmos"
  104. ],
  105. "pattern": "^.*$"
  106. },
  107. "host": {
  108. "$id": "#root/site_group/outputs/items/PostgresOutput/settings/host",
  109. "title": "Host",
  110. "type": "string",
  111. "default": "127.0.0.1",
  112. "examples": [
  113. "10.0.186.16"
  114. ],
  115. "pattern": "^.*$"
  116. },
  117. "password": {
  118. "$id": "#root/site_group/outputs/items/PostgresOutput/settings/password",
  119. "title": "Password",
  120. "type": "string",
  121. "default": "",
  122. "examples": [
  123. "cms823nvc"
  124. ],
  125. "pattern": "^.*$"
  126. },
  127. "port": {
  128. "$id": "#root/site_group/outputs/items/PostgresOutput/settings/port",
  129. "title": "Port",
  130. "type": "integer",
  131. "examples": [
  132. 5432
  133. ],
  134. "default": 5432
  135. },
  136. "user": {
  137. "$id": "#root/site_group/outputs/items/PostgresOutput/settings/user",
  138. "title": "User",
  139. "type": "string",
  140. "default": "",
  141. "examples": [
  142. "bmos"
  143. ],
  144. "pattern": "^.*$"
  145. }
  146. }
  147. }
  148.  
  149. }
  150. }
  151.  
  152. }
  153. }
  154.  
  155. },
  156. "project_name": {
  157. "$id": "#root/site_group/project_name",
  158. "title": "Project_name",
  159. "type": "string",
  160. "default": "",
  161. "examples": [
  162. "heathy_wood"
  163. ],
  164. "pattern": "^.*$"
  165. },
  166. "sites": {
  167. "$id": "#root/site_group/sites",
  168. "title": "Sites",
  169. "type": "array",
  170. "default": [],
  171. "items":{
  172. "$id": "#root/site_group/sites/items",
  173. "title": "Items",
  174. "type": "object",
  175. "required": [
  176. "enable",
  177. "equip",
  178. "name",
  179. "plot"
  180. ],
  181. "properties": {
  182. "enable": {
  183. "$id": "#root/site_group/sites/items/enable",
  184. "title": "Enable",
  185. "type": "boolean",
  186. "examples": [
  187. true
  188. ],
  189. "default": true
  190. },
  191. "equip": {
  192. "$id": "#root/site_group/sites/items/equip",
  193. "title": "Equip",
  194. "type": "array",
  195. "default": [],
  196. "items":{
  197. "$id": "#root/site_group/sites/items/equip/items",
  198. "title": "Items",
  199. "type": "object",
  200. "required": [
  201. "enable",
  202. "ip",
  203. "name",
  204. "points",
  205. "port"
  206. ],
  207. "properties": {
  208. "name": {
  209. "$id": "#root/site_group/sites/items/equip/items/name",
  210. "title": "Name",
  211. "type": "string",
  212. "default": "",
  213. "examples": [
  214. "gateway"
  215. ],
  216. "pattern": "^.*$"
  217. },
  218. "enable": {
  219. "$id": "#root/site_group/sites/items/equip/items/enable",
  220. "title": "Enable",
  221. "type": "boolean",
  222. "examples": [
  223. true
  224. ],
  225. "default": true
  226. },
  227. "ip": {
  228. "$id": "#root/site_group/sites/items/equip/items/ip",
  229. "title": "Ip",
  230. "type": "string",
  231. "default": "",
  232. "examples": [
  233. "10.135.140.21"
  234. ],
  235. "pattern": "^.*$"
  236. },
  237. "points": {
  238. "$id": "#root/site_group/sites/items/equip/items/points",
  239. "title": "Points",
  240. "type": "array",
  241. "default": [],
  242. "items":{
  243. "$id": "#root/site_group/sites/items/equip/items/points/items",
  244. "title": "Items",
  245. "type": "object",
  246. "required": [
  247. "auto_convert",
  248. "data_type",
  249. "dis",
  250. "enable",
  251. "interval",
  252. "name",
  253. "order",
  254. "reg_type",
  255. "register",
  256. "scale",
  257. "supports_contiguous_modbus_reads",
  258. "tags",
  259. "uid",
  260. "units"
  261. ],
  262. "properties": {
  263. "name": {
  264. "$id": "#root/site_group/sites/items/equip/items/points/items/name",
  265. "title": "Name",
  266. "type": "string",
  267. "default": "",
  268. "examples": [
  269. "living_room_rh"
  270. ],
  271. "pattern": "^.*$"
  272. },
  273. "auto_convert": {
  274. "$id": "#root/site_group/sites/items/equip/items/points/items/auto_convert",
  275. "title": "Auto_convert",
  276. "type": "boolean",
  277. "examples": [
  278. false
  279. ],
  280. "default": true
  281. },
  282. "data_type": {
  283. "$id": "#root/site_group/sites/items/equip/items/points/items/data_type",
  284. "title": "Data_type",
  285. "type": "string",
  286. "default": "",
  287. "examples": [
  288. "unsigned int"
  289. ],
  290. "pattern": "^.*$"
  291. },
  292. "dis": {
  293. "$id": "#root/site_group/sites/items/equip/items/points/items/dis",
  294. "title": "Dis",
  295. "type": "string",
  296. "default": "",
  297. "examples": [
  298. "Living Room Relative Humidity"
  299. ],
  300. "pattern": "^.*$"
  301. },
  302. "enable": {
  303. "$id": "#root/site_group/sites/items/equip/items/points/items/enable",
  304. "title": "Enable",
  305. "type": "boolean",
  306. "examples": [
  307. true
  308. ],
  309. "default": true
  310. },
  311. "interval": {
  312. "$id": "#root/site_group/sites/items/equip/items/points/items/interval",
  313. "title": "Interval",
  314. "type": "integer",
  315. "examples": [
  316. 160
  317. ],
  318. "default": 0
  319. },
  320. "order": {
  321. "$id": "#root/site_group/sites/items/equip/items/points/items/order",
  322. "title": "Order",
  323. "type": "string",
  324. "default": "",
  325. "examples": [
  326. "01"
  327. ],
  328. "pattern": "^.*$"
  329. },
  330. "reg_type": {
  331. "$id": "#root/site_group/sites/items/equip/items/points/items/reg_type",
  332. "title": "Reg_type",
  333. "type": "string",
  334. "default": "",
  335. "examples": [
  336. "holding"
  337. ],
  338. "pattern": "^.*$"
  339. },
  340. "register": {
  341. "$id": "#root/site_group/sites/items/equip/items/points/items/register",
  342. "title": "Register",
  343. "type": "integer",
  344. "examples": [
  345. 70
  346. ],
  347. "default": 0
  348. },
  349. "scale": {
  350. "$id": "#root/site_group/sites/items/equip/items/points/items/scale",
  351. "title": "Scale",
  352. "type": "number",
  353. "examples": [
  354. 0.01
  355. ],
  356. "default": 0.0
  357. },
  358. "supports_contiguous_modbus_reads": {
  359. "$id": "#root/site_group/sites/items/equip/items/points/items/supports_contiguous_modbus_reads",
  360. "title": "Supports_contiguous_modbus_reads",
  361. "type": "boolean",
  362. "examples": [
  363. true
  364. ],
  365. "default": true
  366. },
  367. "tags": {
  368. "$id": "#root/site_group/sites/items/equip/items/points/items/tags",
  369. "title": "Tags",
  370. "type": "object",
  371. "required": [
  372. ],
  373. "properties": {
  374. }
  375. }
  376. ,
  377. "uid": {
  378. "$id": "#root/site_group/sites/items/equip/items/points/items/uid",
  379. "title": "Uid",
  380. "type": "integer",
  381. "examples": [
  382. 99
  383. ],
  384. "default": 0
  385. },
  386. "units": {
  387. "$id": "#root/site_group/sites/items/equip/items/points/items/units",
  388. "title": "Units",
  389. "type": "string",
  390. "default": "",
  391. "examples": [
  392. "ΒΊC"
  393. ],
  394. "pattern": "^.*$"
  395. }
  396. }
  397. }
  398.  
  399. },
  400. "port": {
  401. "$id": "#root/site_group/sites/items/equip/items/port",
  402. "title": "Port",
  403. "type": "integer",
  404. "examples": [
  405. 503
  406. ],
  407. "default": 0
  408. }
  409. }
  410. }
  411.  
  412. },
  413. "name": {
  414. "$id": "#root/site_group/sites/items/name",
  415. "title": "Name",
  416. "type": "string",
  417. "default": "",
  418. "examples": [
  419. "STM-87-HWA"
  420. ],
  421. "pattern": "^.*$"
  422. },
  423. "plot": {
  424. "$id": "#root/site_group/sites/items/plot",
  425. "title": "Plot",
  426. "type": "string",
  427. "default": "",
  428. "examples": [
  429. "A"
  430. ],
  431. "pattern": "^.*$"
  432. }
  433. }
  434. }
  435.  
  436. }
  437. }
  438. }
  439. }
  440. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement