Skip to content

Commit 78d9d3b

Browse files
committed
Remove # prefix in contract references
1 parent c199c61 commit 78d9d3b

9 files changed

Lines changed: 21 additions & 21 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ In this walkthrough, we try to create the following endpoints, that make up a RE
7979
"isPartOfKey": "true"
8080
},
8181
"Name": "string",
82-
"Gender": "#Gender",
83-
"AccessRights": "#AccessRights",
84-
"BankAccounts": "#BankAccounts*",
82+
"Gender": "Gender",
83+
"AccessRights": "AccessRights",
84+
"BankAccounts": "BankAccounts*",
8585
"PetId": "int64?"
8686
},
8787
"CreatePersonRequest": {
8888
"Name": "string",
89-
"Gender": "#Gender",
90-
"AccessRights": "#AccessRights",
89+
"Gender": "Gender",
90+
"AccessRights": "AccessRights",
9191
"PetId": "int64?"
9292
},
9393
"Pet":{
@@ -96,9 +96,9 @@ In this walkthrough, we try to create the following endpoints, that make up a RE
9696
},
9797
"UpdatePersonRequest": {
9898
"Name": "string",
99-
"Gender": "#Gender",
100-
"AccessRights": "#AccessRights",
101-
"Pets": "#Pet*"
99+
"Gender": "Gender",
100+
"AccessRights": "AccessRights",
101+
"Pets": "Pet*"
102102
}
103103
}
104104
```

src/Dibix.Sdk/Schema/dibix.contracts.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"SchemaTypeReference": {
99
"type": "string",
10-
"pattern": "^#([\\w]+)(.([\\w]+))*\\??\\*?$"
10+
"pattern": "^([\\w]+)(.([\\w]+))*\\??\\*?$"
1111
},
1212
"PropertyType": {
1313
"anyOf": [

tests/Dibix.Sdk.Tests.Database/Contracts/AnotherInputContract.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "string",
77
"isOptional": true
88
},
9-
"SomeIds": "#AnotherEntry*",
9+
"SomeIds": "AnotherEntry*",
1010
"D": "uuid",
1111
"Password": "string",
1212
"E": "boolean",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"MultiMapContract": {
33
"X": "uuid?",
4-
"Y": "#GenericContract*",
5-
"Directions": "#Direction*"
4+
"Y": "GenericContract*",
5+
"Directions": "Direction*"
66
}
77
}

tests/Dibix.Sdk.Tests.Database/Contracts/GenericContract.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"isDiscriminator": true
1717
},
1818
"Role": {
19-
"type": "#Role",
19+
"type": "Role",
2020
"default": "User"
2121
},
2222
"CreationTime": {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"GridResult": {
3-
"Item": "#Extension.MultiMapContract",
4-
"Directions": "#Direction*"
3+
"Item": "Extension.MultiMapContract",
4+
"Directions": "Direction*"
55
}
66
}

tests/Dibix.Sdk.Tests.Database/Contracts/InputContract.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "string",
77
"isOptional": true
88
},
9-
"Ids": "#Entry*",
9+
"Ids": "Entry*",
1010
"D": "uuid",
1111
"Password": "string",
1212
"E": "boolean",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"JointContract": {
3-
"A": "#GenericContract",
4-
"B": "#Direction",
5-
"C": "#AccessRights"
3+
"A": "GenericContract",
4+
"B": "Direction",
5+
"C": "AccessRights"
66
}
77
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Request": {
3-
"Id": "#Entry",
4-
"Ids": "#Entry*"
3+
"Id": "Entry",
4+
"Ids": "Entry*"
55
}
66
}

0 commit comments

Comments
 (0)