in lib/odata/metadata.js [214:371]
FunctionImport: schemaElement(
/*attributes*/["Name", "Function", "EntitySet", "IncludeInServiceDocument", "Annotation*"]
),
Guid: schemaElement(
/*attributes*/null,
/*elements*/null,
/*text*/true
),
If: schemaElement(
/*attributes*/null,
/*elements*/["Path*", "String*", "Annotation*"]
),
Int: schemaElement(
/*attributes*/null,
/*elements*/null,
/*text*/true
),
IsOf: schemaElement(
/*attributes*/["Type", "MaxLength", "Precision", "Scale", "Unicode", "SRID", "DefaultValue", "Annotation*"],
/*elements*/["Path*"]
),
Key: schemaElement(
/*attributes*/null,
/*elements*/["PropertyRef*"]
),
LabeledElement: schemaElement(
/*attributes*/["Name"],
/*elements*/["Binary*", "Bool*", "Date*", "DateTimeOffset*", "Decimal*", "Duration*", "EnumMember*", "Float*", "Guid*", "Int*", "String*", "TimeOfDay*", "And*", "Or*", "Not*", "Eq*", "Ne*", "Gt*", "Ge*", "Lt*", "Le*", "AnnotationPath*", "Apply*", "Cast*", "Collection*", "If*", "IsOf*", "LabeledElement*", "LabeledElementReference*", "Null*", "NavigationPropertyPath*", "Path*", "PropertyPath*", "Record*", "UrlRef*", "Annotation*"]
),
LabeledElementReference: schemaElement(
/*attributes*/["Term"],
/*elements*/["Binary*", "Bool*", "Date*", "DateTimeOffset*", "Decimal*", "Duration*", "EnumMember*", "Float*", "Guid*", "Int*", "String*", "TimeOfDay*", "And*", "Or*", "Not*", "Eq*", "Ne*", "Gt*", "Ge*", "Lt*", "Le*", "AnnotationPath*", "Apply*", "Cast*", "Collection*", "If*", "IsOf*", "LabeledElement*", "LabeledElementReference*", "Null*", "NavigationPropertyPath*", "Path*", "PropertyPath*", "Record*", "UrlRef*"]
),
Member: schemaElement(
/*attributes*/["Name", "Value"],
/*element*/["Annotation*"]
),
NavigationProperty: schemaElement(
/*attributes*/["Name", "Type", "Nullable", "Partner", "ContainsTarget"],
/*elements*/["ReferentialConstraint*", "OnDelete*", "Annotation*"]
),
NavigationPropertyBinding: schemaElement(
/*attributes*/["Path", "Target"]
),
NavigationPropertyPath: schemaElement(
/*attributes*/null,
/*elements*/null,
/*text*/true
),
Null: schemaElement(
/*attributes*/null,
/*elements*/["Annotation*"]
),
OnDelete: schemaElement(
/*attributes*/["Action"],
/*elements*/["Annotation*"]
),
Path: schemaElement(
/*attributes*/null,
/*elements*/null,
/*text*/true
),
Parameter: schemaElement(
/*attributes*/["Name", "Type", "Nullable", "MaxLength", "Precision", "Scale", "SRID"],
/*elements*/["Annotation*"]
),
Property: schemaElement(
/*attributes*/["Name", "Type", "Nullable", "MaxLength", "Precision", "Scale", "Unicode", "SRID", "DefaultValue"],
/*elements*/["Annotation*"]
),
PropertyPath: schemaElement(
/*attributes*/null,
/*elements*/null,
/*text*/true
),
PropertyRef: schemaElement(
/*attributes*/["Name", "Alias"]
),
PropertyValue: schemaElement(
/*attributes*/["Property", "Path"],
/*elements*/["Binary*", "Bool*", "Date*", "DateTimeOffset*", "Decimal*", "Duration*", "EnumMember*", "Float*", "Guid*", "Int*", "String*", "TimeOfDay*", "And*", "Or*", "Not*", "Eq*", "Ne*", "Gt*", "Ge*", "Lt*", "Le*", "AnnotationPath*", "Apply*", "Cast*", "Collection*", "If*", "IsOf*", "LabeledElement*", "LabeledElementReference*", "Null*", "NavigationPropertyPath*", "Path*", "PropertyPath*", "Record*", "UrlRef*", "Annotation*"]
),
Record: schemaElement(
/*attributes*/null,
/*Elements*/["PropertyValue*", "Property*", "Annotation*"]
),
ReferentialConstraint: schemaElement(
/*attributes*/["Property", "ReferencedProperty", "Annotation*"]
),
ReturnType: schemaElement(
/*attributes*/["Type", "Nullable", "MaxLength", "Precision", "Scale", "SRID"]
),
String: schemaElement(
/*attributes*/null,
/*elements*/null,
/*text*/true
),
Schema: schemaElement(
/*attributes*/["Namespace", "Alias"],
/*elements*/["Action*", "Annotations*", "Annotation*", "ComplexType*", "EntityContainer", "EntityType*", "EnumType*", "Function*", "Term*", "TypeDefinition*", "Annotation*"]
),
Singleton: schemaElement(
/*attributes*/["Name", "Type"],
/*elements*/["NavigationPropertyBinding*", "Annotation*"]
),
Term: schemaElement(
/*attributes*/["Name", "Type", "BaseTerm", "DefaultValue ", "AppliesTo", "Nullable", "MaxLength", "Precision", "Scale", "SRID"],
/*elements*/["Annotation*"]
),
TimeOfDay: schemaElement(
/*attributes*/null,
/*elements*/null,
/*text*/true
),
TypeDefinition: schemaElement(
/*attributes*/["Name", "UnderlyingType", "MaxLength", "Unicode", "Precision", "Scale", "SRID"],
/*elements*/["Annotation*"]
),
UrlRef: schemaElement(
/*attributes*/null,
/*elements*/["Binary*", "Bool*", "Date*", "DateTimeOffset*", "Decimal*", "Duration*", "EnumMember*", "Float*", "Guid*", "Int*", "String*", "TimeOfDay*", "And*", "Or*", "Not*", "Eq*", "Ne*", "Gt*", "Ge*", "Lt*", "Le*", "AnnotationPath*", "Apply*", "Cast*", "Collection*", "If*", "IsOf*", "LabeledElement*", "LabeledElementReference*", "Null*", "NavigationPropertyPath*", "Path*", "PropertyPath*", "Record*", "UrlRef*", "Annotation*"]
),
// See http://msdn.microsoft.com/en-us/library/dd541238(v=prot.10) for an EDMX reference.
Edmx: schemaElement(
/*attributes*/["Version"],
/*elements*/["DataServices", "Reference*"],
/*text*/false,
/*ns*/edmxNs
),
DataServices: schemaElement(
/*attributes*/["m:MaxDataServiceVersion", "m:DataServiceVersion"],
/*elements*/["Schema*"],
/*text*/false,
/*ns*/edmxNs
),
Reference: schemaElement(
/*attributes*/["Uri"],
/*elements*/["Include*", "IncludeAnnotations*", "Annotation*"]
),
Include: schemaElement(
/*attributes*/["Namespace", "Alias"]
),
IncludeAnnotations: schemaElement(
/*attributes*/["TermNamespace", "Qualifier", "TargetNamespace"]
)
}
};
/** Converts a Pascal-case identifier into a camel-case identifier.
* @param {String} text - Text to convert.
* @returns {String} Converted text.
* If the text starts with multiple uppercase characters, it is left as-is.
*/
function scriptCase(text) {
if (!text) {