99designs / 99designs/gqlgen

strange symbols in generated code

Đang mở
#3,413 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
10.8k
Fork
1.3k
Merge trung bình
2 ngày 36 phút
Pull request đã merge (30 ngày)
26

Mô tả

unmarshalN__DirectiveLocation2ᚕstringᚄ

in generated file i can see strange symbols, does it possible to generate code only with standard symbols ?

my schema:
```
directive @AccountService on FIELD_DEFINITION
type Account {
id: String
parent: String
zone: String
status: AccountStatus
login: String
passw: String
type: AccountType
createdAt: Int
updatedAt: Int
deletedAt: Int
info: AccountInfo
metadata: [Account_MetadataEntry!]
}
enum AccountAddress {
ACCOUNT_ADDRESS_UNSPECIFIED
ACCOUNT_ADDRESS_REGISTRATION
ACCOUNT_ADDRESS_CURRENT
ACCOUNT_ADDRESS_CORPORATE
}
type AccountInfo {
name: String
email: String
id: String
contacts: [Contact!]
addresses: [Address!]
}
enum AccountStatus {
ACCOUNT_STATUS_UNSPECIFIED
ACCOUNT_STATUS_DISABLED
ACCOUNT_STATUS_ENABLED
ACCOUNT_STATUS_BLOCKED
ACCOUNT_STATUS_DELETED
}
enum AccountType {
ACCOUNT_TYPE_UNSPECIFIED
ACCOUNT_TYPE_PRIVATE
ACCOUNT_TYPE_CORPORATE
}
type Account_MetadataEntry {
key: String
value: String
}
type Address {
type: AccountAddress
value: String
}
type Contact {
type: ContactType
value: String
}
enum ContactType {
CONTACT_TYPE_UNSPECIFIED
CONTACT_TYPE_EMAIL
CONTACT_TYPE_PHONE
CONTACT_TYPE_MESSENGER
}
input CreateAccountReqInput {
name: String
}
type ListAccountRsp {
accounts: [Account!]
}
type Mutation {
accountServiceCreateAccount(in: CreateAccountReqInput): Boolean @AccountService
accountServiceUpdateAccount: Boolean @AccountService
accountServiceDeleteAccount: Boolean @AccountService
}
type Query {
accountServiceListAccount: ListAccountRsp @AccountService
accountServiceLookupAccount: Boolean @AccountService
}

```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.