Skip to content

Commit 16355b9

Browse files
committed
update bnf and json schema to be consistent with security spec
1 parent 9c50be0 commit 16355b9

3 files changed

Lines changed: 17 additions & 57 deletions

File tree

documentation/IDTA-01002-3/modules/ROOT/pages/json-grammar.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,15 @@
129129
| "," <ws> "\"USEOBJECTS\":" <ws> <string_array> )
130130
( "," <ws> "\"FORMULA\":" <ws> <logical_expression>
131131
| "," <ws> "\"USEFORMULA\":" <ws> <StringLiteral> )
132-
( "," <ws> "\"FRAGMENT\":" <ws> <FieldIdentifierFragment>
133-
"," <ws> ( "\"FILTER\":" <ws> <logical_expression>
134-
| "\"USEFILTER\":" <ws> <StringLiteral> ) )?
132+
"," <ws> "\"FILTER\":" <ws> <security_query_filter>
135133
( "," <ws> "\"FILTERLIST\":" <ws> <security_query_filter_array> )?
136134
<ws> "}"
137135

138136
<security_query_filter_array> ::= "[" <ws> <security_query_filter> <ws> ( "," <ws> <security_query_filter> <ws> )* "]"
139137
<security_query_filter> ::= "{" <ws>
140138
"\"FRAGMENT\":" <ws> <FieldIdentifierFragment>
141-
"," <ws> ( "\"FILTER\":" <ws> <logical_expression>
142-
| "\"USEFILTER\":" <ws> <StringLiteral> )
139+
"," <ws> ( "\"CONDITION\":" <ws> <logical_expression>
140+
| "\"USEFORMULA\":" <ws> <StringLiteral> )
143141
<ws> "}"
144142

145143
<acl> ::= "{" <ws>

documentation/IDTA-01002-3/modules/ROOT/pages/schema.adoc

Lines changed: 8 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -683,24 +683,20 @@
683683
"USEFORMULA": {
684684
"type": "string"
685685
},
686-
"FRAGMENT": {
687-
"$ref": "#/definitions/fieldIdentifierFragment"
688-
},
689686
"FILTER": {
690-
"$ref": "#/definitions/logicalExpression",
687+
"$ref": "#/definitions/SecurityQueryFilter",
691688
"additionalProperties": false
692689
},
693-
"USEFILTER": {
694-
"type": "string"
695-
},
696690
"FILTERLIST": {
697691
"type": "array",
698-
"minItems": 1,
699692
"items": {
700693
"$ref": "#/definitions/SecurityQueryFilter"
701694
}
702695
}
703696
},
697+
"required": [
698+
"FILTER"
699+
],
704700
"allOf": [
705701
{
706702
"oneOf": [
@@ -743,43 +739,6 @@
743739
]
744740
}
745741
]
746-
},
747-
{
748-
"oneOf": [
749-
{
750-
"required": [
751-
"FRAGMENT",
752-
"FILTER"
753-
]
754-
},
755-
{
756-
"required": [
757-
"FRAGMENT",
758-
"USEFILTER"
759-
]
760-
},
761-
{
762-
"not": {
763-
"anyOf": [
764-
{
765-
"required": [
766-
"FRAGMENT"
767-
]
768-
},
769-
{
770-
"required": [
771-
"FILTER"
772-
]
773-
},
774-
{
775-
"required": [
776-
"USEFILTER"
777-
]
778-
}
779-
]
780-
}
781-
}
782-
]
783742
}
784743
],
785744
"additionalProperties": false
@@ -790,10 +749,10 @@
790749
"FRAGMENT": {
791750
"$ref": "#/definitions/fieldIdentifierFragment"
792751
},
793-
"FILTER": {
752+
"CONDITION": {
794753
"$ref": "#/definitions/logicalExpression"
795754
},
796-
"USEFILTER": {
755+
"USEFORMULA": {
797756
"type": "string"
798757
}
799758
},
@@ -803,12 +762,12 @@
803762
"oneOf": [
804763
{
805764
"required": [
806-
"FILTER"
765+
"CONDITION"
807766
]
808767
},
809768
{
810769
"required": [
811-
"USEFILTER"
770+
"USEFORMULA"
812771
]
813772
}
814773
],

documentation/IDTA-01002-3/modules/ROOT/partials/bnf/grammar.bnf

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,17 @@
101101
( <SingleObject> <ws> )*
102102
( <UseObjectGroup> <ws> )*
103103
( ( "FORMULA:" <ws> <Condition> ) | ("USEFORMULA" <ws> <StringLiteral>) <ws> ) <ws>
104-
( "FRAGMENT:" <ws> <FieldIdentifierFragment> <ws> ( ( "FILTER:" <ws> <Condition> ) | ("USEFILTER" <ws> <StringLiteral>) <ws> ) <ws> )?
104+
( <Filter> <ws> )
105105
( <FilterList> <ws> )?
106106

107+
<Filter> ::=
108+
"FILTER:" <ws> ( <SecurityQueryFilter> <ws> )
109+
107110
<FilterList> ::=
108-
"FILTERLIST:" <ws> ( <SecurityQueryFilter> <ws> )+
111+
"FILTERLIST:" <ws> ( <SecurityQueryFilter> <ws> )*
109112

110113
<SecurityQueryFilter> ::=
111-
"FRAGMENT:" <ws> <FieldIdentifierFragment> <ws> ( ( "FILTER:" <ws> <Condition> ) | ("USEFILTER" <ws> <StringLiteral>) <ws> ) <ws>
114+
"FRAGMENT:" <ws> <FieldIdentifierFragment> <ws> ( ( "CONDITION:" <ws> <Condition> ) | ("USEFORMULA" <ws> <StringLiteral>) <ws> ) <ws>
112115

113116
<ACL> ::=
114117
"ATTRIBUTES:" <ws>

0 commit comments

Comments
 (0)