Add new structures for OpenAPI/UI enhancements (#6931)

This commit is contained in:
Jim Kalafut
2019-06-19 16:48:58 -07:00
committed by GitHub
parent 3cad184ca1
commit 76b551f818
2 changed files with 34 additions and 0 deletions

View File

@@ -543,6 +543,10 @@ type FieldSchema struct {
// DisplaySensitive indicates that the value should be masked by default in the UI.
DisplaySensitive bool
// DisplayAttrs provides hints for UI and documentation generators. They
// will be included in OpenAPI output if set.
DisplayAttrs *DisplayAttributes
}
// DefaultOrZero returns the default value if it is set, or otherwise