How to use @serverless-ide/config - 1 common examples

To help you get started, we’ve selected a few @serverless-ide/config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github threadheap / serverless-ide-vscode / packages / language-server / src / language-service / services / jsonSchema / mutation / serverless.ts View on Github external
export const applyProviderMutations = (
	schema: ResolvedSchema,
	yamlDocument: YAMLDocument
): ResolvedSchema => {
	const jsonSchema = schema.schema

	if (
		yamlDocument.documentType === DocumentType.SERVERLESS_FRAMEWORK &&
		yamlDocument.root
	) {
		const clonedSchema = cloneDeep(jsonSchema)
		const runtimeNode = yamlDocument.root.get(["provider", "runtime"])

		if (runtimeNode) {
			try {
				updateFunctionProperties(
					clonedSchema.properties.functions.oneOf[0]
						.patternProperties["^[a-zA-Z0-9]+$"]
				)
				updateFunctionProperties(
					clonedSchema.properties.functions.oneOf[1].items
						.patternProperties["^[a-zA-Z0-9]+$"]
				)
			} catch (err) {

@serverless-ide/config

Serverless IDE config model and parser

MIT
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis

Popular @serverless-ide/config functions