Skip to main content
Version: v0.19.0-alpha 🚧

SchemaCreateCoerced

Alias:SchemaCreateCoerced, GenerateSchemaCoerced

Output:Entity

Create a new schema by analysing the entity properties and values in an array or an entity stream. This Step is best used with flat data sources such as Concordance or CSV as it does additional processing to infer the data types of strings.

ParameterTypeRequiredPositionDefault ValueSummary
Entitiesarray<entity>✔1The array to get the lat element of
AllowExtraPropertiesboolfalseWhether properties other than the explicitly defined properties are allowed.
BooleanFalseFormatsstring or array<string> or entityFalseStrings which represent falsity This can either be a string, and array of string, or an entity mapping field names to strings or arrays of string
BooleanTrueFormatsstring or array<string> or entityTrueStrings which represent truth. This can either be a string, and array of string, or an entity mapping field names to strings or arrays of string
CaseSensitiveboolFalseWhether transformations are case sensitive
DateInputFormatsstring or array<string> or entityyyyy-MM-ddTHH:mm:ssKISO 8601 Date Formats to use for strings representing dates This can either be a string, and array of string, or an entity mapping field names to strings or arrays of string
NullFormatsstring or array<string> or entityNo null valuesStrings which represent null This can either be a string, and array of string, or an entity mapping field names to strings or arrays of string
SchemaNamestringSchemaThe name of the schema to create

Examples​

Even though IntegerProperty is represented as a string in the input entity (quoted), it is converted to an integer in the schema.

SCL​

SchemaCreateCoerced Entities: [('StringProperty': "abc" 'IntegerProperty': "123")] SchemaName: 'My Schema'

Expected Output​

('title': "My Schema" 'type': "object" 'additionalProperties': False 'properties': ('StringProperty': ('type': "string") 'IntegerProperty': ('type': "integer")) 'required': ["StringProperty", "IntegerProperty"])