12 lines
283 B
Plaintext
12 lines
283 B
Plaintext
import { validateDefinedAndNonEmpty } from '../utils';
|
|
|
|
import type { Oas3Rule, Oas2Rule } from '../../visitors';
|
|
|
|
export const InfoLicenseUrl: Oas3Rule | Oas2Rule = () => {
|
|
return {
|
|
License(license, ctx) {
|
|
validateDefinedAndNonEmpty('url', license, ctx);
|
|
},
|
|
};
|
|
};
|