0.1.2 • Published 1 year ago

@hckrnews/openapi-filters v0.1.2

Weekly downloads
-
License
LGPL-2.1
Repository
github
Last release
1 year 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);
0.1.2

1 year ago

0.1.1

2 years ago

0.1.0

2 years ago