dis+/node_modules/exegesis/lib/oas3/urlEncodedBodyParser.js
// Find a property in a JSON Schema.
Find a property in a JSON Schema.
Find a property in a JSON Schema .
function findProperty(path, schema, propertyName) {
    if (schema.properties && schema.properties[propertyName]) {
        return path;
    }
    const allOf = schema.allOf || [];
    for (let index = 0; index < allOf.length; index++) {
        const childSchema = json_schema_resolve_ref_1.resolveRef(schema, allOf[index]);
        const answer = findProperty(path.concat(['allOf', `${index}`]), childSchema, propertyName);
        if (answer) {
            return answer;
        }
    }
    return undefined;
}
function findProperty ( path , schema , propertyName ) { if ( schema . properties && schema . properties [ propertyName ] ) { return path ; } const allOf = schema . allOf || [ ] ; for ( let index = 0 ; index < allOf . length ; index ++ ) { const childSchema = json_schema_resolve_ref_1 . resolveRef ( schema , allOf [ index ] ) ; const answer = findProperty ( path . concat ( [ 'allOf' , ` ${ index } ` ] ) , childSchema , propertyName ) ; if ( answer ) { return answer ; } } return undefined ; }
Find a property in a JSON Schema.
Find a property in a JSON Schema .