Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Random value #71

Open
cuniculus-zipf opened this issue Apr 12, 2024 · 0 comments
Open

[FEATURE] Random value #71

cuniculus-zipf opened this issue Apr 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@cuniculus-zipf
Copy link
Contributor

cuniculus-zipf commented Apr 12, 2024

For mock values, add randoms:

String

key:
  type: random_string
  chars: ABCDE12345
  length: 10

Integer

key:
  type: random_integer
  range: 1-10
  seed: 42

Float

key:
  type: random_float
  range: 0.0-1.9

List

key:
  type: random_list
  values: random_string
  # or values: ['a', 'b', 'c']
  length: 10
  seed: *

Object

key:
  type: random_obj
  keys: ['a', 'b']
  # or keys: random_string
  values: random_integer
  # or values: ['a', 'b', 'c']
  min_breadth: 1
  max_breadth: 4
  min_depth: 1
  max_depth: 3

Choice

key:
  type: random_choice
  values: ['a', 'b', 'c']
@cuniculus-zipf cuniculus-zipf added the enhancement New feature or request label Apr 12, 2024
@cuniculus-zipf cuniculus-zipf self-assigned this Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant