-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/ai-conversation-update
- Loading branch information
Showing
14 changed files
with
286 additions
and
82 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
15 changes: 12 additions & 3 deletions
15
packages/data-schema/__tests__/__snapshots__/ModelType.test.ts.snap
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
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
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
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
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
9 changes: 9 additions & 0 deletions
9
...sts__/defined-behavior/2-expected-use/__snapshots__/primary-and-secondary-indexes.ts.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Primary Indexes Custom identifier single field SK defaulted/serial field can be used in identifier 1`] = ` | ||
"type Model @model(timestamps: null) @auth(rules: [{allow: public, provider: apiKey}]) | ||
{ | ||
idSerial: Int! @primaryKey @default | ||
content: String | ||
}" | ||
`; |
47 changes: 47 additions & 0 deletions
47
...ation-tests/__tests__/defined-behavior/2-expected-use/__snapshots__/schema-errors.ts.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`validated on execution Generated fields and identifiers: datetime Throws if identifier is nullable and has no default 1`] = `"Invalid identifier definition. Field nullableFieldNoDefault cannot be used in the identifier. Identifiers must reference required or DB-generated fields)"`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: datetime Throws if you use \`.default()\` on unsupported engine 1`] = `"Invalid field definition for nullableGeneratedField. DB-generated fields are only supported with PostgreSQL data sources."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: datetime Throws if you use \`.default()\` on unsupported engine 2`] = `"Model \`Model\` is missing authorization rules. Add global rules to the schema or ensure every model has its own rules."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: datetime Throws if you use \`.default()\` on unsupported engine 3`] = `"Incompatible field type. Field type AWSDateTime in field nullableGeneratedField cannot be configured as a DB-generated field."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: datetime Throws if you use \`.default()\` on unsupported field type 1`] = `"Incompatible field type. Field type AWSDateTime in field nullableGeneratedField cannot be configured as a DB-generated field."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: float Throws if identifier is nullable and has no default 1`] = `"Invalid identifier definition. Field nullableFieldNoDefault cannot be used in the identifier. Identifiers must reference required or DB-generated fields)"`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: float Throws if you use \`.default()\` on unsupported engine 1`] = `"Invalid field definition for nullableGeneratedField. DB-generated fields are only supported with PostgreSQL data sources."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: float Throws if you use \`.default()\` on unsupported engine 2`] = `"Model \`Model\` is missing authorization rules. Add global rules to the schema or ensure every model has its own rules."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: float Throws if you use \`.default()\` on unsupported engine 3`] = `"Incompatible field type. Field type Float in field nullableGeneratedField cannot be configured as a DB-generated field."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: float Throws if you use \`.default()\` on unsupported field type 1`] = `"Incompatible field type. Field type Float in field nullableGeneratedField cannot be configured as a DB-generated field."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: integer Throws if identifier is nullable and has no default 1`] = `"Invalid identifier definition. Field nullableFieldNoDefault cannot be used in the identifier. Identifiers must reference required or DB-generated fields)"`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: integer Throws if you use \`.default()\` on unsupported engine 1`] = `"Invalid field definition for nullableGeneratedField. DB-generated fields are only supported with PostgreSQL data sources."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: integer Throws if you use \`.default()\` on unsupported engine 2`] = `"Model \`Model\` is missing authorization rules. Add global rules to the schema or ensure every model has its own rules."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: string Throws if identifier is nullable and has no default 1`] = `"Invalid identifier definition. Field nullableFieldNoDefault cannot be used in the identifier. Identifiers must reference required or DB-generated fields)"`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: string Throws if you use \`.default()\` on unsupported engine 1`] = `"Invalid field definition for nullableGeneratedField. DB-generated fields are only supported with PostgreSQL data sources."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: string Throws if you use \`.default()\` on unsupported engine 2`] = `"Model \`Model\` is missing authorization rules. Add global rules to the schema or ensure every model has its own rules."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: string Throws if you use \`.default()\` on unsupported engine 3`] = `"Incompatible field type. Field type String in field nullableGeneratedField cannot be configured as a DB-generated field."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: string Throws if you use \`.default()\` on unsupported field type 1`] = `"Incompatible field type. Field type String in field nullableGeneratedField cannot be configured as a DB-generated field."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: timestamp Throws if identifier is nullable and has no default 1`] = `"Invalid identifier definition. Field nullableFieldNoDefault cannot be used in the identifier. Identifiers must reference required or DB-generated fields)"`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: timestamp Throws if you use \`.default()\` on unsupported engine 1`] = `"Invalid field definition for nullableGeneratedField. DB-generated fields are only supported with PostgreSQL data sources."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: timestamp Throws if you use \`.default()\` on unsupported engine 2`] = `"Model \`Model\` is missing authorization rules. Add global rules to the schema or ensure every model has its own rules."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: timestamp Throws if you use \`.default()\` on unsupported engine 3`] = `"Incompatible field type. Field type AWSTimestamp in field nullableGeneratedField cannot be configured as a DB-generated field."`; | ||
|
||
exports[`validated on execution Generated fields and identifiers: timestamp Throws if you use \`.default()\` on unsupported field type 1`] = `"Incompatible field type. Field type AWSTimestamp in field nullableGeneratedField cannot be configured as a DB-generated field."`; |
Oops, something went wrong.