@hckrnews/openapi-filters

0.1.1 • Public • Published

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);

/@hckrnews/openapi-filters/

    Package Sidebar

    Install

    npm i @hckrnews/openapi-filters

    Weekly Downloads

    1

    Version

    0.1.1

    License

    LGPL-2.1

    Unpacked Size

    22.8 kB

    Total Files

    29

    Last publish

    Collaborators

    • epeus
    • w3news