logo
Documentation
Creating mock data
Initializing search
    mgrsskls/miyagi
    mgrsskls/miyagi
    • Home
    • Installation
      • Default configuration
      • Available options
      • Via config file
      • Via CLI
      • Extending a template engine
      • Starting miyagi
      • Creating a component
      • Creating mock data
      • Linting mock data
      • Creating a build
      • Introduction
      • Assets
      • Documentation
      • Info
      • Mocks
      • Schema
      • Template
    • The UI
    • Supported template engines
    • JavaScript API
      • Adding JS files
      • Adding custom CSS and JS per component
      • Extending a template engine
      • Using dark and light mode
      • Theming the UI
      • Changing the text direction
      • Changing the HTML language attribute
      • Configuring the JSON Schema validator
      • Organizing components
      • Writing mock data
      • Linting mock data
      • Changing miyagi's port
      • Adding documentation
      • Creating a design token overview
      • Navigating through miyagi

    Creating mock data

    miyagi mocks path/to/your/component
    

    If you have a valid schema file in your component folder, this will create a mock file with dummy content (created by @stoplight/json-schema-sampler).

    Please be aware that this should only be used as a small helper when starting to write mock data. The generated mock data is by no means realistic mock data, but merely data with the correct types and should only serve as a starting point.

    Previous Creating a component
    Next Linting mock data
    Made with Material for MkDocs