diff --git a/cmd/analyzer/main.go b/cmd/analyzer/main.go index 793b66ec..0e1921f5 100644 --- a/cmd/analyzer/main.go +++ b/cmd/analyzer/main.go @@ -286,7 +286,26 @@ func createOpenAPISchema(providers map[string]provider.InternalProviderClient, l fmt.Sprintf("%s.%s", provName, c.Name): { Schema: c.Input.Schema, }, - // HERE WE NEED TO ADD NOT,FROM,AS,ETC + "from": { + Schema: &openapi3.Schema{ + Type: &provider.SchemaTypeString, + }, + }, + "as": { + Schema: &openapi3.Schema{ + Type: &provider.SchemaTypeString, + }, + }, + "ignore": { + Schema: &openapi3.Schema{ + Type: &provider.SchemaTypeBool, + }, + }, + "not": { + Schema: &openapi3.Schema{ + Type: &provider.SchemaTypeBool, + }, + }, }, }, } diff --git a/provider/provider.go b/provider/provider.go index 2d2dbd50..a13efc7e 100644 --- a/provider/provider.go +++ b/provider/provider.go @@ -38,7 +38,8 @@ var ( SchemaTypeString openapi3.SchemaType = openapi3.SchemaTypeString SchemaTypeArray openapi3.SchemaType = openapi3.SchemaTypeArray SchemaTypeObject openapi3.SchemaType = openapi3.SchemaTypeObject - SChemaTypeNumber openapi3.SchemaType = openapi3.SchemaTypeInteger + SchemaTypeNumber openapi3.SchemaType = openapi3.SchemaTypeInteger + SchemaTypeBool openapi3.SchemaType = openapi3.SchemaTypeBoolean ) // This will need a better name, may we want to move it to top level