load static method
- Directory? from,
Loads docs/api/openapi.yaml and docs/api/asyncapi.yaml of the repository that holds
from (default: the working directory), walking up to the folder that has docs/api.
Without such a folder (an app under test in the macOS app sandbox, whose working
directory is / and which cannot read the repository) it uses embedded.
The documents are read once per isolate and cached.
Implementation
static ContractSchemas load({Directory? from}) =>
_loaded ??= _fromFiles(from ?? Directory.current) ?? embedded();