|
6 | 6 | "type": "object", |
7 | 7 | "definitions": { |
8 | 8 | "ABCStatus": { |
9 | | - "type": "string", |
10 | 9 | "enum": [ |
11 | 10 | "RELEASED", |
12 | 11 | "CONDITIONAL_RELEASED", |
|
26 | 25 | "type": "number" |
27 | 26 | }, |
28 | 27 | "transactionType": { |
29 | | - "type": "string", |
30 | | - "enum": ["receive"] |
| 28 | + "const": "receive" |
31 | 29 | }, |
32 | 30 | "transactionData": { |
33 | 31 | "type": "object", |
|
102 | 100 | "type": "number" |
103 | 101 | }, |
104 | 102 | "transactionType": { |
105 | | - "type": "string", |
106 | | - "enum": ["build"] |
| 103 | + "const": "build" |
107 | 104 | }, |
108 | 105 | "transactionData": { |
109 | 106 | "type": "object", |
|
237 | 234 | "type": "number" |
238 | 235 | }, |
239 | 236 | "transactionType": { |
240 | | - "type": "string", |
241 | | - "enum": ["transfer"] |
| 237 | + "const": "transfer" |
242 | 238 | }, |
243 | 239 | "transactionData": { |
244 | 240 | "type": "object", |
|
303 | 299 | "type": "number" |
304 | 300 | }, |
305 | 301 | "transactionType": { |
306 | | - "type": "string", |
307 | | - "enum": ["statusChange"] |
| 302 | + "const": "statusChange" |
308 | 303 | }, |
309 | 304 | "transactionData": { |
310 | 305 | "type": "object", |
|
369 | 364 | "type": "number" |
370 | 365 | }, |
371 | 366 | "transactionType": { |
372 | | - "type": "string", |
373 | | - "enum": ["distribute"] |
| 367 | + "const": "distribute" |
374 | 368 | }, |
375 | 369 | "transactionData": { |
376 | 370 | "type": "object", |
|
422 | 416 | "type": "number" |
423 | 417 | }, |
424 | 418 | "transactionType": { |
425 | | - "type": "string", |
426 | | - "enum": ["destroy"] |
| 419 | + "const": "destroy" |
427 | 420 | }, |
428 | 421 | "transactionData": { |
429 | 422 | "type": "object", |
|
471 | 464 | "type": "number" |
472 | 465 | }, |
473 | 466 | "transactionType": { |
474 | | - "type": "string", |
475 | | - "enum": ["sell"] |
| 467 | + "const": "sell" |
476 | 468 | }, |
477 | 469 | "transactionData": { |
478 | 470 | "type": "object", |
|
524 | 516 | "type": "number" |
525 | 517 | }, |
526 | 518 | "transactionType": { |
527 | | - "type": "string", |
528 | | - "enum": ["adjust"] |
| 519 | + "const": "adjust" |
529 | 520 | }, |
530 | 521 | "transactionData": { |
531 | 522 | "type": "object", |
|
581 | 572 | "type": "number" |
582 | 573 | }, |
583 | 574 | "transactionType": { |
584 | | - "type": "string", |
585 | | - "enum": ["changeExpiry"] |
| 575 | + "const": "changeExpiry" |
586 | 576 | }, |
587 | 577 | "transactionData": { |
588 | 578 | "type": "object", |
|
626 | 616 | }, |
627 | 617 | "ABCInventoryTransaction": { |
628 | 618 | "oneOf": [ |
629 | | - { "$ref": "#/definitions/ABCInventoryReceiveTransaction" }, |
630 | | - { "$ref": "#/definitions/ABCInventoryBuildTransaction" }, |
631 | | - { "$ref": "#/definitions/ABCInventoryTransferTransaction" }, |
632 | | - { "$ref": "#/definitions/ABCInventoryStatusChangeTransaction" }, |
633 | | - { "$ref": "#/definitions/ABCInventoryDistributeTransaction" }, |
634 | | - { "$ref": "#/definitions/ABCInventoryDestroyTransaction" }, |
635 | | - { "$ref": "#/definitions/ABCInventorySellTransaction" }, |
636 | | - { "$ref": "#/definitions/ABCInventoryAdjustTransaction" }, |
637 | | - { "$ref": "#/definitions/ABCInventoryChangeExpiryTransaction" } |
| 619 | + { |
| 620 | + "$ref": "#/definitions/ABCInventoryReceiveTransaction" |
| 621 | + }, |
| 622 | + { |
| 623 | + "$ref": "#/definitions/ABCInventoryBuildTransaction" |
| 624 | + }, |
| 625 | + { |
| 626 | + "$ref": "#/definitions/ABCInventoryTransferTransaction" |
| 627 | + }, |
| 628 | + { |
| 629 | + "$ref": "#/definitions/ABCInventoryStatusChangeTransaction" |
| 630 | + }, |
| 631 | + { |
| 632 | + "$ref": "#/definitions/ABCInventoryDistributeTransaction" |
| 633 | + }, |
| 634 | + { |
| 635 | + "$ref": "#/definitions/ABCInventoryDestroyTransaction" |
| 636 | + }, |
| 637 | + { |
| 638 | + "$ref": "#/definitions/ABCInventorySellTransaction" |
| 639 | + }, |
| 640 | + { |
| 641 | + "$ref": "#/definitions/ABCInventoryAdjustTransaction" |
| 642 | + }, |
| 643 | + { |
| 644 | + "$ref": "#/definitions/ABCInventoryChangeExpiryTransaction" |
| 645 | + } |
638 | 646 | ] |
639 | 647 | }, |
640 | 648 | "ABCInventoryEntryWithoutUpstreams": { |
|
670 | 678 | "type": "string" |
671 | 679 | }, |
672 | 680 | "hasUpstreams": { |
673 | | - "type": "boolean", |
674 | | - "enum": [false] |
| 681 | + "const": false |
675 | 682 | }, |
676 | 683 | "transactionNotes": { |
677 | 684 | "type": "array", |
|
732 | 739 | "type": "string" |
733 | 740 | }, |
734 | 741 | "hasUpstreams": { |
735 | | - "type": "boolean", |
736 | | - "enum": [true] |
| 742 | + "const": true |
737 | 743 | }, |
738 | 744 | "upstreamIDs": { |
739 | 745 | "type": "array", |
|
784 | 790 | }, |
785 | 791 | "ABCInventoryEntry": { |
786 | 792 | "oneOf": [ |
787 | | - { "$ref": "#/definitions/ABCInventoryEntryWithoutUpstreams" }, |
788 | | - { "$ref": "#/definitions/ABCInventoryEntryWithUpstreams" } |
| 793 | + { |
| 794 | + "$ref": "#/definitions/ABCInventoryEntryWithoutUpstreams" |
| 795 | + }, |
| 796 | + { |
| 797 | + "$ref": "#/definitions/ABCInventoryEntryWithUpstreams" |
| 798 | + } |
789 | 799 | ] |
790 | 800 | } |
791 | 801 | }, |
792 | 802 | "properties": { |
793 | 803 | "$schema": { |
794 | 804 | "description": "Link to https://www.schemastore.org/abc-inventory-module-data-2.0.0.json", |
795 | | - "type": "string", |
796 | | - "enum": [ |
797 | | - "https://www.schemastore.org/abc-inventory-module-data-2.0.0.json" |
798 | | - ] |
| 805 | + "const": "https://www.schemastore.org/abc-inventory-module-data-2.0.0.json" |
799 | 806 | }, |
800 | 807 | "ABCProducts": { |
801 | 808 | "type": "object", |
|
0 commit comments