0.1.1 • Published 6 months ago

@hckrnews/openapi-filters v0.1.1

Weekly downloads
-
License
LGPL-2.1
Repository
github
Last release
6 months ago

openapi-filters

import { makeFilters } from '@hckrnews/openapi-filters'
import openAPISpecification from './openapi-spec.json' assert { type: 'json' }

const openAPIspec = openAPISpecification.paths['/test'].get

const filters = makeFilters(openAPIspec);
const params = {
    page: 1,
    size: 42,
};
const result = filters(params);