Load an OpenAPI spec and provide the derived app model to the tree.
On mount (and whenever specConfiguration.specUrl changes) it:
Loads the spec (loadSpec).
Validates it (validateSpec), collecting errors and warnings.
If there are no errors, builds resources (buildResourceConfigs),
applies per-resource fieldTypes overrides, and initializes the shared
axios client via initApi(baseApiUrl, getToken).
It also derives authConfig (from securitySchemes.bearerAuthx-*
extensions) and profileOperations (operations flagged x-profile: true),
and exposes everything through AppContext for useAppContext, Admin,
and ProfileRoutes.
Notes:
Must wrap any component that uses useAppContext, Admin, useResource
or the profile screens.
Base API URL precedence: specConfiguration.baseApiUrl, then the spec's
first servers[].url.
Props: specConfiguration (see SpecConfiguration) and children.
Load an OpenAPI spec and provide the derived app model to the tree.
On mount (and whenever
specConfiguration.specUrlchanges) it:loadSpec).validateSpec), collectingerrorsandwarnings.resources(buildResourceConfigs), applies per-resourcefieldTypesoverrides, and initializes the shared axios client viainitApi(baseApiUrl, getToken).It also derives
authConfig(fromsecuritySchemes.bearerAuthx-*extensions) andprofileOperations(operations flaggedx-profile: true), and exposes everything throughAppContextforuseAppContext,Admin, andProfileRoutes.Notes:
useAppContext,Admin,useResourceor the profile screens.specConfiguration.baseApiUrl, then the spec's firstservers[].url.Props:
specConfiguration(seeSpecConfiguration) andchildren.