Created
October 1, 2019 17:29
-
-
Save Jingbang-liu-lix/c1bcc927a690c1355de2d46de2c2143b to your computer and use it in GitHub Desktop.
Specification Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"operations" :[{ | |
"grammarId" : "interface-locale", | |
"description" : "Implementation of <code>interface-locale</code> operation of Lix DSL", | |
"externalDoc" : "The interface-locale field is a UI setting chosen by each member which controls which language the LinkedIn user interface renders in. Members can change it any time. NOTE: There is another selector, locale, which is the property set at the time of registration and user can never change it. See go/lixfaq more details.", | |
"category" : "member-profile", | |
"predefinedValueResourceName" : "locales", | |
"predefinedImplementation" : { | |
"com.linkedin.lix.dsl.v2.grammar.data.UserAndEntityContextsReadOperationData" : { | |
"userCtxPropertyName" : "interface-locale", | |
"entityCtxPropertyName" : "interface_locale", | |
"entityCtxEntityTypeRestriction": ["MEMBER"], | |
"type" : "STRING", | |
"description" : "Known implementation of <code>interface-locale</code> that retrieves value from <code>interface-locale</code> property of {@link com.linkedin.lix.dsl.v2.api.LixUserContext} and if the value is not found, reads it from <code>interface_locale</code> property value from <code>interface_locale</code> property of {@link com.linkedin.lix.dsl.v2.api.LixTypedContext} provided by {@link com.linkedin.lix.dsl.v2.api.LixExecutionDataProvider}" | |
} | |
}, | |
"nameReferredInLixEntityAttributeResource" : "interfaceLocale" | |
}, | |
{ | |
"grammarId" : "in", | |
"description" : "Implementation of <code>in</code> operation of Lix DSL", | |
"externalDoc": "IN selector checks if array contains the selector value.", | |
"category" : "operator", | |
"onlineContextReadingFrequency": "NEVER", | |
"isArgConstant": [false, true], | |
"overloads" : [ { | |
"args" : [ { | |
"type" : "LONG", | |
"name" : "arg0", | |
"description" : "long" | |
}, { | |
"type" : "LONG_COLLECTION", | |
"name" : "arg1", | |
"description" : "collection<long>" | |
} ], | |
"returnTypes" : [ "BOOLEAN" ], | |
"description" : "Overload of <code>in</code> operation with signature <code>bool execute(long,collection<long>)</code>" | |
}, { | |
"args" : [ { | |
"type" : "STRING", | |
"name" : "arg0", | |
"description" : "string" | |
}, { | |
"type" : "STRING_COLLECTION", | |
"name" : "arg1", | |
"description" : "collection<string>" | |
} ], | |
"returnTypes" : [ "BOOLEAN" ], | |
"description" : "Overload of <code>in</code> operation with signature <code>bool execute(string,collection<string>)</code>" | |
}, { | |
"args" : [ { | |
"type" : "LONG_COLLECTION", | |
"name" : "arg0", | |
"description" : "collection<long>" | |
}, { | |
"type" : "LONG_COLLECTION", | |
"name" : "arg1", | |
"description" : "collection<long>" | |
} ], | |
"returnTypes" : [ "BOOLEAN" ], | |
"description" : "Overload of <code>in</code> operation with signature <code>bool execute(collection<long>,collection<long>)</code>" | |
}, { | |
"args" : [ { | |
"type" : "STRING_COLLECTION", | |
"name" : "arg0", | |
"description" : "collection<string>" | |
}, { | |
"type" : "STRING_COLLECTION", | |
"name" : "arg1", | |
"description" : "collection<string>" | |
} ], | |
"returnTypes" : [ "BOOLEAN" ], | |
"description" : "Overload of <code>in</code> operation with signature <code>bool execute(collection<string>,collection<string>)</code>" | |
} | |
], | |
"usesRealtimeDataExclusively" : false | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment