apigear-io / cli

The ApiGear client as go project
https://apigear.io
MIT License
1 stars 2 forks source link

add fake functions to templates #108

Open jryannel opened 10 months ago

jryannel commented 10 months ago

E.g. it shall be possible to create fake data for properties, functions, etc.

This shall allow the code generator and the simulation to use fake data

properties:
  - name: value
    type: int
    fake: number:1,10

or

@fake: {number:1,10}
value: int

in the simulation

properties:
  - name: value
    value: 0
    fake: number:1,10

See also https://github.com/brianvoe/gofakeit