mikekonan / go-oas3

Open API v3 server code generator
MIT License
20 stars 8 forks source link

Problem with component schema type customising #2

Closed sergeydobrodey closed 3 years ago

sergeydobrodey commented 3 years ago

Schema top level object (defined below) with x-go-type tag is translated to type Credentials fbk.JSONObjectRaw, so custom json.Marshaler json.Unmarshaler implementation are not used and Credentials behaves like []byte. I think type aliasing should be used: type Credentials = fbk.JSONObjectRaw

Credentials:
      type: object
      x-go-type: "xdevteam.com/pa/lib/fbk.JSONObjectRaw"