@@ -45,32 +45,42 @@ openapi_generator(
4545openapi_generator (
4646 name = "petstore_java_reserved_words" ,
4747 generator = "java" ,
48- spec = "petstore.yaml" ,
4948 reserved_words_mappings = [
5049 "interface=interface" ,
5150 ],
51+ spec = "petstore.yaml" ,
5252)
5353
5454openapi_generator (
5555 name = "petstore_python_flask_with_config_tag" ,
56+ config = "config.yaml" ,
5657 generator = "python-flask" ,
5758 spec = "petstore.yaml" ,
58- config = "config.yaml"
5959)
6060
6161openapi_generator (
6262 name = "petstore_python_flask_with_template_dir" ,
6363 generator = "python-flask" ,
6464 spec = "petstore.yaml" ,
65- template_dir = "python-templates"
65+ template_dir = "python-templates" ,
6666)
6767
6868openapi_generator (
6969 name = "petstore_java_import_mappings" ,
7070 generator = "java" ,
71- spec = "petstore.yaml" ,
7271 import_mappings = {
7372 "Date" : "java.time.LocalDate" ,
7473 "DateTime" : "java.time.OffsetDateTime" ,
7574 },
75+ spec = "petstore.yaml" ,
76+ )
77+
78+ openapi_generator (
79+ name = "petstore_java_name_mappings" ,
80+ generator = "java" ,
81+ name_mappings = {
82+ "code" : "statusCode" ,
83+ "message" : "statusMessage" ,
84+ },
85+ spec = "petstore.yaml" ,
7686)
0 commit comments