update lua default value (#379)

This commit is contained in:
William Cheng 2018-05-09 10:30:49 +08:00 committed by GitHub
parent ded082202e
commit b24df8882f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 47 additions and 47 deletions

View File

@ -36,11 +36,11 @@ public class LuaClientCodegen extends DefaultCodegen implements CodegenConfig {
static Logger LOGGER = LoggerFactory.getLogger(LuaClientCodegen.class); static Logger LOGGER = LoggerFactory.getLogger(LuaClientCodegen.class);
protected String specFolder = "spec"; protected String specFolder = "spec";
protected String packageName = "swagger-client"; protected String packageName = "openapi-client";
protected String packageVersion = "1.0.0-1"; protected String packageVersion = "1.0.0-1";
protected String apiDocPath = "docs/"; protected String apiDocPath = "docs/";
protected String modelDocPath = "docs/"; protected String modelDocPath = "docs/";
protected String luaRocksFilename = "swagger-client-1.0.0-1.rockspec"; protected String luaRocksFilename = "openapi-client-1.0.0-1.rockspec";
public CodegenType getTag() { public CodegenType getTag() {
return CodegenType.CLIENT; return CodegenType.CLIENT;

View File

@ -1,16 +1,16 @@
--[[ --[[
Swagger Petstore OpenAPI Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git Generated by: https://openapi-generator.tech
]] ]]
--[[ --[[
Unit tests for petstore.model.api_response Unit tests for petstore.model.api_response
Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) Automatically generated by openapi-generator (https://openapi-generator.tech)
Please update as you see appropriate Please update as you see appropriate
]] ]]
describe("api_response", function() describe("api_response", function()

View File

@ -1,16 +1,16 @@
--[[ --[[
Swagger Petstore OpenAPI Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git Generated by: https://openapi-generator.tech
]] ]]
--[[ --[[
Unit tests for petstore.model.category Unit tests for petstore.model.category
Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) Automatically generated by openapi-generator (https://openapi-generator.tech)
Please update as you see appropriate Please update as you see appropriate
]] ]]
describe("category", function() describe("category", function()

View File

@ -1,16 +1,16 @@
--[[ --[[
Swagger Petstore OpenAPI Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git Generated by: https://openapi-generator.tech
]] ]]
--[[ --[[
Unit tests for petstore.model.order Unit tests for petstore.model.order
Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) Automatically generated by openapi-generator (https://openapi-generator.tech)
Please update as you see appropriate Please update as you see appropriate
]] ]]
describe("order", function() describe("order", function()

View File

@ -1,16 +1,16 @@
--[[ --[[
Swagger Petstore OpenAPI Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git Generated by: https://openapi-generator.tech
]] ]]
--[[ --[[
Unit tests for petstore.api.pet_api Unit tests for petstore.api.pet_api
Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) Automatically generated by openapi-generator (https://openapi-generator.tech)
Please update as you see appropriate Please update as you see appropriate
]] ]]
describe("pet_api", function() describe("pet_api", function()

View File

@ -1,16 +1,16 @@
--[[ --[[
Swagger Petstore OpenAPI Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git Generated by: https://openapi-generator.tech
]] ]]
--[[ --[[
Unit tests for petstore.model.pet Unit tests for petstore.model.pet
Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) Automatically generated by openapi-generator (https://openapi-generator.tech)
Please update as you see appropriate Please update as you see appropriate
]] ]]
describe("pet", function() describe("pet", function()

View File

@ -1,16 +1,16 @@
--[[ --[[
Swagger Petstore OpenAPI Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git Generated by: https://openapi-generator.tech
]] ]]
--[[ --[[
Unit tests for petstore.api.store_api Unit tests for petstore.api.store_api
Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) Automatically generated by openapi-generator (https://openapi-generator.tech)
Please update as you see appropriate Please update as you see appropriate
]] ]]
describe("store_api", function() describe("store_api", function()

View File

@ -1,16 +1,16 @@
--[[ --[[
Swagger Petstore OpenAPI Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git Generated by: https://openapi-generator.tech
]] ]]
--[[ --[[
Unit tests for petstore.model.tag Unit tests for petstore.model.tag
Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) Automatically generated by openapi-generator (https://openapi-generator.tech)
Please update as you see appropriate Please update as you see appropriate
]] ]]
describe("tag", function() describe("tag", function()

View File

@ -1,16 +1,16 @@
--[[ --[[
Swagger Petstore OpenAPI Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git Generated by: https://openapi-generator.tech
]] ]]
--[[ --[[
Unit tests for petstore.api.user_api Unit tests for petstore.api.user_api
Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) Automatically generated by openapi-generator (https://openapi-generator.tech)
Please update as you see appropriate Please update as you see appropriate
]] ]]
describe("user_api", function() describe("user_api", function()

View File

@ -1,16 +1,16 @@
--[[ --[[
Swagger Petstore OpenAPI Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git Generated by: https://openapi-generator.tech
]] ]]
--[[ --[[
Unit tests for petstore.model.user Unit tests for petstore.model.user
Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) Automatically generated by openapi-generator (https://openapi-generator.tech)
Please update as you see appropriate Please update as you see appropriate
]] ]]
describe("user", function() describe("user", function()