src/extension.js
/**
 * Validation
 * @param {Object} doc vscode document object
 */
Validation
@param {Object} doc vscode document object
Validation @param { Object } doc vscode document object
async function validateSwagger(doc) {
	let api
	let deref
	try {
		deref = await SwaggerParser.dereference(doc.fileName)
		api = await SwaggerParser.validate(deref)
		api.fileName = doc.fileName
		return api
	} catch(err) {
		err.fileName = doc.fileName
		return err
	}
}
async function validateSwagger ( doc ) { let api let deref try { deref = await SwaggerParser . dereference ( doc . fileName ) api = await SwaggerParser . validate ( deref ) api . fileName = doc . fileName return api } catch ( err ) { err . fileName = doc . fileName return err } }
Validation
 @param {Object} doc vscode document object
Validation @param { Object } doc vscode document object
// Multifile specs need dereference bundle or won't find other files