Guest User

Untitled

a guest
Jan 15th, 2020
91
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2. "plugins": {
  3. "buildinfo": {}
  4. },
  5. "root": "metadata",
  6. "nodes": {
  7. "metadata": {
  8. "properties": {
  9. "deeplyEmbedded": {
  10. "type": {
  11. "reference": "false",
  12. "array": "true",
  13. "object": "deeplyEmbedded"
  14. }
  15. },
  16. "customEntities": {
  17. "type": {
  18. "reference": "false",
  19. "array": "true",
  20. "object": "customEntity"
  21. }
  22. },
  23. "dataTypesEntity": {
  24. "type": {
  25. "reference": "false",
  26. "array": "true",
  27. "object": "dataType"
  28. }
  29. },
  30. "constraintsEntity": {
  31. "type": {
  32. "reference": "false",
  33. "array": "true",
  34. "object": "constraintEntity"
  35. }
  36. },
  37. "a": {
  38. "type": {
  39. "reference": "false",
  40. "array": "true",
  41. "object": "parentA"
  42. }
  43. },
  44. "b": {
  45. "type": {
  46. "reference": "false",
  47. "array": "true",
  48. "object": "childB"
  49. }
  50. }
  51. }
  52. },
  53. "deeplyEmbedded": {
  54. "properties": {
  55. "name": {
  56. "type": {
  57. "type": "string"
  58. }
  59. },
  60. "array1": {
  61. "type": {
  62. "reference": "false",
  63. "array": "true",
  64. "object": "array1"
  65. }
  66. },
  67. "single1": {
  68. "type": {
  69. "reference": "false",
  70. "array": "false",
  71. "object": "single1"
  72. }
  73. }
  74. }
  75. },
  76. "customEntity": {
  77. "properties": {
  78. "name": {
  79. "type": {
  80. "type": "string"
  81. }
  82. },
  83. "stringScalar": {
  84. "type": {
  85. "type": "string"
  86. }
  87. },
  88. "arrayNoReference": {
  89. "type": {
  90. "reference": "false",
  91. "array": "true",
  92. "object": "arrayNoReference"
  93. }
  94. },
  95. "arrayRefArraySameParent": {
  96. "type": {
  97. "reference": "false",
  98. "array": "true",
  99. "object": "arrayRefArraySameParent"
  100. }
  101. },
  102. "referenceDataTypes": {
  103. "type": {
  104. "reference": "true",
  105. "array": "false",
  106. "object": "dataType"
  107. }
  108. },
  109. "selfReference": {
  110. "type": {
  111. "reference": true,
  112. "array": false,
  113. "object": "customEntity"
  114. }
  115. }
  116. }
  117. },
  118. "single1": {
  119. "properties": {
  120. "name": {
  121. "type": {
  122. "type": "string"
  123. }
  124. },
  125. "single2": {
  126. "type": {
  127. "reference": "false",
  128. "array": "false",
  129. "object": "single2"
  130. }
  131. }
  132. }
  133. },
  134. "single2": {
  135. "properties": {
  136. "name": {
  137. "type": {
  138. "type": "string"
  139. }
  140. }
  141. }
  142. },
  143. "array1": {
  144. "properties": {
  145. "name": {
  146. "type": {
  147. "type": "string"
  148. }
  149. },
  150. "array2": {
  151. "type": {
  152. "reference": "false",
  153. "array": "true",
  154. "object": "array2"
  155. }
  156. }
  157. }
  158. },
  159. "array2": {
  160. "properties": {
  161. "name": {
  162. "type": {
  163. "type": "string"
  164. }
  165. },
  166. "secondProperty": {
  167. "type": {
  168. "type": "string"
  169. }
  170. },
  171. "array3": {
  172. "type": {
  173. "reference": "false",
  174. "array": "true",
  175. "object": "array3"
  176. }
  177. }
  178. }
  179. },
  180. "array3": {
  181. "properties": {
  182. "name": {
  183. "type": {
  184. "type": "string"
  185. }
  186. },
  187. "array4": {
  188. "type": {
  189. "reference": "false",
  190. "array": "true",
  191. "object": "array4"
  192. }
  193. }
  194. }
  195. },
  196. "array4": {
  197. "properties": {
  198. "name": {
  199. "type": {
  200. "type": "string"
  201. }
  202. },
  203. "single5": {
  204. "type": {
  205. "reference": "false",
  206. "array": "false",
  207. "object": "single5"
  208. }
  209. },
  210. "array5": {
  211. "type": {
  212. "reference": "false",
  213. "array": "true",
  214. "object": "array5"
  215. }
  216. }
  217. }
  218. },
  219. "single5": {
  220. "properties": {
  221. "name": {
  222. "type": {
  223. "type": "string"
  224. }
  225. }
  226. }
  227. },
  228. "array5": {
  229. "properties": {
  230. "name": {
  231. "type": {
  232. "type": "string"
  233. }
  234. },
  235. "single6": {
  236. "type": {
  237. "reference": "false",
  238. "array": "false",
  239. "object": "single6"
  240. }
  241. }
  242. }
  243. },
  244. "single6": {
  245. "properties": {
  246. "name": {
  247. "type": {
  248. "type": "string"
  249. }
  250. }
  251. }
  252. },
  253. "arrayNoReference": {
  254. "properties": {
  255. "name": {
  256. "type": {
  257. "type": "string"
  258. }
  259. },
  260. "single2": {
  261. "type": {
  262. "reference": "false",
  263. "array": "false",
  264. "object": "single2"
  265. }
  266. }
  267. }
  268. },
  269. "arrayRefArraySameParent": {
  270. "properties": {
  271. "name": {
  272. "type": {
  273. "type": "string"
  274. }
  275. },
  276. "referenceArraySameParent": {
  277. "type": {
  278. "reference": "true",
  279. "object": "arrayNoReference"
  280. },
  281. "valueProvider": {
  282. "type": "sameParent",
  283. "name": "arrayNoReferences"
  284. }
  285. }
  286. }
  287. },
  288. "dataType": {
  289. "properties": {
  290. "name": {
  291. "type": {
  292. "type": "string"
  293. }
  294. },
  295. "booleanProperty": {
  296. "type": {
  297. "type": "boolean"
  298. }
  299. },
  300. "longProperty": {
  301. "type": {
  302. "type": "long"
  303. }
  304. },
  305. "intProperty": {
  306. "type": {
  307. "type": "integer"
  308. }
  309. },
  310. "doubleProperty": {
  311. "type": {
  312. "type": "double"
  313. }
  314. },
  315. "floatProperty": {
  316. "type": {
  317. "type": "float"
  318. }
  319. }
  320. }
  321. },
  322. "constraintEntity": {
  323. "properties": {
  324. "name": {
  325. "type": {
  326. "type": "string"
  327. }
  328. },
  329. "required": {
  330. "type": {
  331. "type": "string"
  332. },
  333. "constraints": [
  334. {
  335. "type": "REQUIRED"
  336. }
  337. ]
  338. },
  339. "requiredRegexp": {
  340. "type": {
  341. "type": "string"
  342. },
  343. "constraints": [
  344. {
  345. "type": "REQUIRED"
  346. },
  347. {
  348. "type": "REGEXP",
  349. "id": "CONTAINS_AT_LEAST_ONE_ALPHA_NUM",
  350. "pattern": "^[ a-zA-Z0-9]+$",
  351. "message": "Name can only have alphanumeric characters"
  352. }
  353. ]
  354. },
  355. "regexp": {
  356. "type": {
  357. "type": "string"
  358. },
  359. "constraints": [
  360. {
  361. "type": "REGEXP",
  362. "id": "CONTAINS_AT_LEAST_ONE_NUM",
  363. "pattern": "^[0-9]+$",
  364. "message": "Name can only have numeric characters"
  365. }
  366. ]
  367. },
  368. "comboRegexp": {
  369. "type": {
  370. "type": "string"
  371. },
  372. "constraints": [
  373. {
  374. "type": "REGEXP",
  375. "id": "STARTS_WITH_COMBO",
  376. "pattern": "^combo.*",
  377. "message": "Name of owner must start with combo"
  378. },
  379. {
  380. "type": "REGEXP",
  381. "id": "ENDS_WITH_REGEXP",
  382. "pattern": ".*Regexp$",
  383. "message": "Name of owner must end with Regexp"
  384. }
  385. ]
  386. },
  387. "arrayConstraints": {
  388. "type": {
  389. "reference": "false",
  390. "array": "true",
  391. "object": "arrayConstraints"
  392. }
  393. },
  394. "singleConstraints": {
  395. "type": {
  396. "reference": "false",
  397. "array": "false",
  398. "object": "singleConstraints"
  399. }
  400. }
  401. },
  402. "constraints": [
  403. {
  404. "type": "UNIQUE",
  405. "id": "ROLE_UNIQUE_NAME",
  406. "scope": "WITHIN_PARENT",
  407. "properties": [
  408. "name"
  409. ]
  410. }
  411. ]
  412. },
  413. "arrayConstraints": {
  414. "properties": {
  415. "name": {
  416. "type": {
  417. "type": "string"
  418. }
  419. },
  420. "arrayRequired": {
  421. "type": {
  422. "type": "string"
  423. },
  424. "constraints": [
  425. {
  426. "type": "REQUIRED"
  427. }
  428. ]
  429. },
  430. "arrayRequiredRegexp": {
  431. "type": {
  432. "type": "string"
  433. },
  434. "constraints": [
  435. {
  436. "type": "REQUIRED"
  437. },
  438. {
  439. "type": "REGEXP",
  440. "id": "CONTAINS_AT_LEAST_ONE_ALPHA_NUM",
  441. "pattern": "^[ a-zA-Z0-9]+$",
  442. "message": "Name can only have alphanumeric characters"
  443. }
  444. ]
  445. },
  446. "arrayRegexp": {
  447. "type": {
  448. "type": "string"
  449. },
  450. "constraints": [
  451. {
  452. "type": "REGEXP",
  453. "id": "CONTAINS_AT_LEAST_ONE_NUM",
  454. "pattern": "[0-9]+",
  455. "message": "Name can only have numeric characters"
  456. }
  457. ]
  458. }
  459. }
  460. },
  461. "singleConstraints": {
  462. "properties": {
  463. "name": {
  464. "type": {
  465. "type": "string"
  466. }
  467. },
  468. "childRequired": {
  469. "type": {
  470. "type": "string"
  471. },
  472. "constraints": [
  473. {
  474. "type": "REQUIRED"
  475. }
  476. ]
  477. },
  478. "childRequiredRegexp": {
  479. "type": {
  480. "type": "string"
  481. },
  482. "constraints": [
  483. {
  484. "type": "REQUIRED"
  485. },
  486. {
  487. "type": "REGEXP",
  488. "id": "CONTAINS_AT_LEAST_ONE_ALPHA_NUM",
  489. "pattern": "^[ a-zA-Z0-9]+$",
  490. "message": "Name can only have alphanumeric characters"
  491. }
  492. ]
  493. },
  494. "childRegexp": {
  495. "type": {
  496. "type": "string"
  497. },
  498. "constraints": [
  499. {
  500. "type": "REGEXP",
  501. "id": "CONTAINS_AT_LEAST_ONE_NUM",
  502. "pattern": "[0-9]+",
  503. "message": "Name can only have numeric characters"
  504. }
  505. ]
  506. }
  507. }
  508. },
  509. "parentA": {
  510. "properties": {
  511. "fieldA": {
  512. "type": {
  513. "type": "string"
  514. }
  515. }
  516. }
  517. },
  518. "childB": {
  519. "properties": {
  520. "fieldB": {
  521. "type": {
  522. "type": "string"
  523. }
  524. },
  525. "referenceC": {
  526. "type": {
  527. "reference": "true",
  528. "array": "false",
  529. "object": "childC"
  530. }
  531. }
  532. },
  533. "extends": "parentA"
  534. },
  535. "childC": {
  536. "properties": {
  537. "fieldC": {
  538. "type": {
  539. "type": "string"
  540. }
  541. }
  542. },
  543. "extends": "parentA"
  544. },
  545. "childD": {
  546. "properties": {
  547. "fieldD": {
  548. "type": {
  549. "type": "string"
  550. }
  551. }
  552. },
  553. "extends": "childC"
  554. }
  555. }
  556. }
RAW Paste Data