Skip to content

Commit 896d07b

Browse files
committed
minor improvement
1 parent b3f91d0 commit 896d07b

11 files changed

Lines changed: 8 additions & 9 deletions

File tree

bin/utils/ensure-up-to-date

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ sleep 5
3434
./bin/csharp-petstore.sh > /dev/null 2>&1
3535
./bin/meta-codegen.sh > /dev/null 2>&1
3636
./bin/utils/export_docs_generators.sh > /dev/null 2>&1
37+
./bin/go-gin-petstore-server.sh > /dev/null 2>&1
3738

3839
# Check:
3940
if [ -n "$(git status --porcelain)" ]; then

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoGinServerCodegen.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/*
2+
* Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
3+
*
24
* Licensed under the Apache License, Version 2.0 (the "License");
35
* you may not use this file except in compliance with the License.
46
* You may obtain a copy of the License at

modules/openapi-generator/src/test/java/org/openapitools/codegen/options/GoGinServerOptionsProvider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/*
2+
* Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
3+
*
24
* Licensed under the Apache License, Version 2.0 (the "License");
35
* you may not use this file except in compliance with the License.
46
* You may obtain a copy of the License at

samples/server/petstore/go-gin-api-server/go/model_api_response.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ package petstoreserver
1111

1212
// ApiResponse - Describes the result of uploading an image resource
1313
type ApiResponse struct {
14-
1514
Code int32 `json:"code,omitempty"`
1615

1716
Type string `json:"type,omitempty"`

samples/server/petstore/go-gin-api-server/go/model_category.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ package petstoreserver
1111

1212
// Category - A category for a pet
1313
type Category struct {
14-
1514
Id int64 `json:"id,omitempty"`
1615

1716
Name string `json:"name,omitempty"`

samples/server/petstore/go-gin-api-server/go/model_order.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515

1616
// Order - An order for a pets from the pet store
1717
type Order struct {
18-
1918
Id int64 `json:"id,omitempty"`
2019

2120
PetId int64 `json:"petId,omitempty"`

samples/server/petstore/go-gin-api-server/go/model_pet.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ package petstoreserver
1111

1212
// Pet - A pet for sale in the pet store
1313
type Pet struct {
14-
1514
Id int64 `json:"id,omitempty"`
1615

1716
Category *Category `json:"category,omitempty"`

samples/server/petstore/go-gin-api-server/go/model_tag.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ package petstoreserver
1111

1212
// Tag - A tag for a pet
1313
type Tag struct {
14-
1514
Id int64 `json:"id,omitempty"`
1615

1716
Name string `json:"name,omitempty"`

samples/server/petstore/go-gin-api-server/go/model_user.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ package petstoreserver
1111

1212
// User - A User who is purchasing from the pet store
1313
type User struct {
14-
1514
Id int64 `json:"id,omitempty"`
1615

1716
Username string `json:"username,omitempty"`

0 commit comments

Comments
 (0)