Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from neotoolkit/feat/extension
Browse files Browse the repository at this point in the history
feat(openapi): add extension properties
  • Loading branch information
sashamelentyev authored Feb 6, 2022
2 parents 20de6c6 + 8fac811 commit 42976b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extension.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package openapi

type ExtensionProps struct {
Extensions map[string]interface{} `json:"-" yaml:"-"`
}
2 changes: 2 additions & 0 deletions schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import "fmt"

// Schema -.
type Schema struct {
ExtensionProps

Properties Schemas `json:"properties,omitempty" yaml:"properties,omitempty"`
Type string `json:"type,omitempty" yaml:"type,omitempty"`
Format string `json:"format,omitempty" yaml:"format,omitempty"`
Expand Down

0 comments on commit 42976b8

Please sign in to comment.