Skip to content

Commit c83b15e

Browse files
committed
refactor(api): Standardize property names in CreateContractModel and UpdateContractModel schemas to lowercase
1 parent 6875490 commit c83b15e

File tree

1 file changed

+15
-17
lines changed
  • unicorn_contracts/infrastructure/contracts-service

1 file changed

+15
-17
lines changed

unicorn_contracts/infrastructure/contracts-service/api.yaml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -103,39 +103,37 @@ components:
103103
schemas:
104104
CreateContractModel:
105105
required:
106-
- "PropertyId"
107-
- "SellerName"
108-
- "Address"
106+
- "property_id"
107+
- "seller_name"
108+
- "address"
109109
type: "object"
110110
properties:
111-
PropertyId:
111+
property_id:
112112
type: "string"
113-
SellerName:
113+
seller_name:
114114
type: "string"
115-
Address:
115+
address:
116116
required:
117-
- "City"
118-
- "Country"
119-
- "Number"
120-
- "Street"
117+
- "city"
118+
- "country"
119+
- "number"
120+
- "street"
121121
type: "object"
122122
properties:
123-
Country:
123+
country:
124124
type: "string"
125-
City:
125+
city:
126126
type: "string"
127-
Street:
127+
street:
128128
type: "string"
129-
Number:
129+
number:
130130
type: "integer"
131131
UpdateContractModel:
132132
required:
133-
- "PropertyId"
133+
- "property_id"
134134
type: "object"
135135
properties:
136136
$ref: "#/components/schemas/CreateContractModel/properties"
137-
# PropertyId:
138-
# type: "string"
139137
Empty:
140138
title: "Empty Schema"
141139
type: "object"

0 commit comments

Comments
 (0)