func (v OpenAPI3Validator) IsRequestProperty(checkmethod, checkpath, propertyPath string) (bool, string, error) {
	spec := v.doc
	for path, props := range spec.Paths {
		for method, op := range getOas3Operations(props) {
			if path == checkpath && method == checkmethod && op.RequestBody != nil {
				for _, param := range op.RequestBody.Value.Content {
					schema := param.Schema.Value
					found, objType := findPropertyInOas3Schema(schema, propertyPath, "")
					if found {
						return true, objType, nil
					}
				}
			}
		}
	}

	return false, "", nil
}
// IsRequestProperty - Find param in schema and determines if it's part of request body
Find param in schema and determines if it's part of request body
// IsRequestProperty - Find param in schema and determines if it ' s part of request body
func (v OpenAPI3Validator) IsRequestProperty(checkmethod, checkpath, propertyPath string) (bool, string, error) {
	spec := v.doc
	for path, props := range spec.Paths {
		for method, op := range getOas3Operations(props) {
			if path == checkpath && method == checkmethod && op.RequestBody != nil {
				for _, param := range op.RequestBody.Value.Content {
					schema := param.Schema.Value
					found, objType := findPropertyInOas3Schema(schema, propertyPath, "")
					if found {
						return true, objType, nil
					}
				}
			}
		}
	}
	return false, "", nil
}
func ( v OpenAPI3Validator ) IsRequestProperty ( checkmethod , checkpath , propertyPath string ) ( bool , string , error ) { spec := v . doc for path , props := range spec . Paths { for method , op := range getOas3Operations ( props ) { if path == checkpath && method == checkmethod && op . RequestBody != nil { for _ , param := range op . RequestBody . Value . Content { schema := param . Schema . Value found , objType := findPropertyInOas3Schema ( schema , propertyPath , " " ) if found { return true , objType , nil } } } } } return false , " " , nil }
Find param in schema and determines if it's part of request body
Find param in schema and determines if it ' s part of request body