Documentation ¶
Index ¶
- Constants
- func ParseSpringCodeColumnsRaw(input []string) [][]string
- func ParseSpringLineToSchema(line string) (string, *oas3.Schema, error)
- func ParseSpringLineToSchemaRef(line string, explicitCustomTypes []string) (string, *oas3.SchemaRef, error)
- func ParseSpringLinesToMapStringSchemaRefs(lines, explicitCustomTypes []string) (map[string]*oas3.SchemaRef, error)
- func ParseSpringPropertyLinesSliceToSchema(groups [][]string) (map[string]*oas3.SchemaRef, error)
- func ParseSpringPropertyLinesToSchema(lines []string) (string, *oas3.Schema, error)
Constants ¶
const ( TypeArray = openapi3.TypeArray TypeBoolean = openapi3.TypeBoolean TypeInteger = openapi3.TypeInteger TypeObject = openapi3.TypeObject TypeString = openapi3.TypeString FormatStringDate = openapi3.FormatDate FormatStringDateTime = openapi3.FormatDateTime FormatIntegerInt64 = openapi3.FormatInt64 )
Variables ¶
This section is empty.
Functions ¶
func ParseSpringCodeColumnsRaw ¶
ParseSpringCodeColumnsRaw takes a set of Java code lines and groups them into lines per property. Not all Java code may be formatted in a way to take advantage of this. noinspection ALL
func ParseSpringLineToSchema ¶
ParseSpringLineToSchema parses a Spring Java code line and attempts to extract a property name, type, format and default value. DEPRECATED
func ParseSpringLineToSchemaRef ¶
func ParseSpringLineToSchemaRef(line string, explicitCustomTypes []string) (string, *oas3.SchemaRef, error)
ParseSpringLineToSchemaRef parses a Spring Java code line and attempts to extract a property name, type, format and default value.
func ParseSpringLinesToMapStringSchemaRefs ¶
func ParseSpringLinesToMapStringSchemaRefs(lines, explicitCustomTypes []string) (map[string]*oas3.SchemaRef, error)
ParseSpringLinesToMapStringSchemaRefs parses a Spring Java code line and attempts to extract a property name, type, format and default value.
func ParseSpringPropertyLinesSliceToSchema ¶
ParseSpringPropertyLinesSliceToSchema takes a set of string slices and attempts to parse one property per set of lines. noinspection ALL
Types ¶
This section is empty.