MCPcopy Index your code
hub / github.com/api3dao/airnode / parseConfig

Function parseConfig

packages/airnode-validator/src/api/api.ts:37–39  ·  view source on GitHub ↗
(config: unknown)

Source from the content-addressed store, hash-verified

35 * @returns `{success: true, data: <interpolated config>}` if successful, `{success: false, error: <error>}` otherwise
36 */
37export function parseConfig(config: unknown): ValidationResult<Config> {
38 return configSchema.safeParse(config);
39}
40
41const secretNamePattern = /^[A-Z][A-Z0-9_]*$/;
42export const secretNameSchema = z

Callers 2

buildConfigFunction · 0.90
parseConfigWithSecretsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected