-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support string constants in endpoint action parameter overrides
- Loading branch information
1 parent
84613a3
commit 305e848
Showing
15 changed files
with
171 additions
and
129 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,10 @@ | |
{ | ||
"type": "number" | ||
}, | ||
{ | ||
"type": "string", | ||
"pattern": "^[^.]+$" | ||
}, | ||
{ | ||
"type": "null" | ||
} | ||
|
13 changes: 7 additions & 6 deletions
13
tests/Dibix.Sdk.Tests.Database/Contracts/AnotherInputContract.json
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
{ | ||
"AnotherInputContract": { | ||
"U": "string", | ||
"V": "string", | ||
"W": { | ||
"A": "string", | ||
"B": "string", | ||
"C": { | ||
"type": "string", | ||
"isOptional": true | ||
}, | ||
"SomeIds": "#AnotherEntry*", | ||
"X": "uuid", | ||
"D": "uuid", | ||
"Password": "string", | ||
"Y": "boolean", | ||
"Z": "int32" | ||
"E": "boolean", | ||
"F": "int32", | ||
"G": "string" | ||
} | ||
} |
13 changes: 7 additions & 6 deletions
13
tests/Dibix.Sdk.Tests.Database/Contracts/InputContract.json
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
{ | ||
"InputContract": { | ||
"U": "string", | ||
"V": "string", | ||
"W": { | ||
"A": "string", | ||
"B": "string", | ||
"C": { | ||
"type": "string", | ||
"isOptional": true | ||
}, | ||
"Ids": "#Entry*", | ||
"X": "uuid", | ||
"D": "uuid", | ||
"Password": "string", | ||
"Y": "boolean", | ||
"Z": "int32" | ||
"E": "boolean", | ||
"F": "int32", | ||
"G": "string" | ||
} | ||
} |
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: 8 additions & 7 deletions
15
tests/Dibix.Sdk.Tests.Database/Tests/Syntax/dbx_tests_syntax_empty_params.sql
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
-- @Name EmptyWithParams | ||
CREATE PROCEDURE [dbo].[dbx_tests_syntax_empty_params] | ||
@u NVARCHAR(50) | ||
, @v NVARCHAR(50) | ||
, @w UNIQUEIDENTIFIER NULL | ||
@a NVARCHAR(50) | ||
, @b NVARCHAR(50) | ||
, @c UNIQUEIDENTIFIER NULL | ||
, /* @Obfuscate */ @password NVARCHAR(128) | ||
, @ids [dbo].[dbx_codeanalysis_udt_generic] READONLY | ||
, @x NVARCHAR(50) NULL = NULL | ||
, @y BIT = 1 | ||
, /* @ClrType Direction */ @z INT NULL = NULL | ||
, @d NVARCHAR(50) NULL = NULL | ||
, @e BIT = 1 | ||
, /* @ClrType Direction */ @f INT NULL = NULL | ||
, @g NVARCHAR(50) NULL = N'Cake' | ||
AS | ||
PRINT CONCAT(@u, @v, @w, @password, @ids, @x, @y, @z) | ||
PRINT CONCAT(@a, @b, @c, @password, @ids, @d, @e, @f, @g) |
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
Oops, something went wrong.