New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

openapi-form-generator

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-form-generator

React based Dynamic Form Builder

latest
Source
npmnpm
Version
0.0.3-d
Version published
Weekly downloads
1
-50%
Maintainers
2
Weekly downloads
 
Created
Source

FormBuilder

npm version

How to use:

Install

npm i openapi-form-generator

OR

yarn add openapi-form-generator

Add Props

<FormBuilder
    openApiOptions={{
        //Handle Response
        //Optional, but Recommended
        onResponseReceived: (data, response) => { 
            console.log(data); //Response Data Object
            console.log(response); //Full Response with Headers + Status + Status Code
        },

        //Where to find the json file        
        src: '/my/api/v1/swagger.json', 
        baseUrl: 'http://api.website.com/', 
        path: '/api/path/as/in/paths/of/json'
    }}
    
    //Useful for seeing Full Request/Response (Remove in production) 
    debug     
    //TODO: check NODE_ENV if production
/>

:star2:Done!:star2:

What does it use?:

Form Structure:

<form class="form">
    <div class="field">
        <label class="label"></label>
        <input class="input" /> OR <textarea class="textarea"></textarea>
    </div>
    <br />
    <button class="button"></button>
</form>

Contribution:

To start developing, run:

npm t

OR

npm test

This will run a test server for the test-app folder with hot-reloading etc.

Keywords

form

FAQs

Package last updated on 12 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts