readOpenApiWithRefs function

Future<Map> readOpenApiWithRefs(
  1. Uri input, {
  2. Map<String, Map>? cache = _sentinelCache,
})

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');
}