readOpenApiWithRefs function
Implementation
Future<Map<dynamic, dynamic>> readOpenApiWithRefs(
Uri input, {
Map<String, Map<dynamic, dynamic>>? cache = _sentinelCache,
}) async {
cache = cache == _sentinelCache ? <String, Map<dynamic, dynamic>>{} : cache;
final data = await readOpenApi(input);
final document = await _resolveDocumentRefs(input, data, data, cache: cache);
return {...document! as Map<dynamic, dynamic>}..remove('parameters');
}