You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we would like to separate field details in model.fields and reference it to the "definition" section like this:
models:
public_address:
type: table
description: my table description
title: my_table
fields:
first_column:
$ref: '#/definitions/first_column'
type: string # integer, array ...
description: first column description
required: true
unique: true
primaryKey: true # primary key
my_second_column:
type: integer
description: second column description
my_third_column:
type: string
description: an other description
references: foreign.key.table
definitions:
first_column:
type: string # integer, array ...
title: An optional string describing the semantic of the data in this field
references: database.schema.table.column #database.schema.column of foreignKey references
pii: true
classification: sensitive
tags: ["myTag", "mySecondTag"]
links:
URLToWebpage: https://example.com
enum: ["good", "better", "best"] #A value must be equal to one of the elements in this array value. Only evaluated if the value is not null
minLength: 5 #A value must greater than, or equal to, the value of this. Only applies to string types.
maxLength: 500 #A value must less than, or equal to, the value of this. Only applies to string types
format: email #A specific format the value must comply with (e.g., 'email', 'uri', 'uuid').
pattern: "^[a-zA-Z0-9_-]+$" # A regular expression the value must match. Only applies to string types
minimum: 5 # A value of a number must greater than, or equal to, the value of this. Only evaluated if the value is not null. Only applies to numeric values.
exclusiveMinimum: 10 #A value of a number must greater than the value of this. Only evaluated if the value is not null. Only applies to numeric values.
maximum: 100000 #A value of a number must less than, or equal to, the value of this. Only evaluated if the value is not null. Only applies to numeric values.
exclusiveMaximum: 15500 # A value of a number must less than the value of this. Only evaluated if the value is not null. Only
But if I'm using the datacontract cli to export the HTML it shows the attributes twice: once in models.fields and additionally in definition. But I configured only primaryKey, unique and description in "models.field" and the rest in definition (see yml).
Hello,
we would like to separate field details in model.fields and reference it to the "definition" section like this:
But if I'm using the datacontract cli to export the HTML it shows the attributes twice: once in models.fields and additionally in definition. But I configured only primaryKey, unique and description in "models.field" and the rest in definition (see yml).
export datacontrac cli output:
I tested it with "online data contract editor" https://editor.datacontract.com/
Here it works perfectly fine:
Thanks you very much!
The text was updated successfully, but these errors were encountered: