input:
$ echo '{ "message": "hello world" }' | python3 main.py
output:
type:
object
properties:
message:
type:
string
example:
hello world
input:
$ echo '{ "message": "hello world" }' | python3 main.py -p '# ' -i '**'
output:
# type:
# **object
# properties:
# **message:
# ****type:
# ******string
# ****example:
# ******hello world
$ cat example.json | python3 main.py
$ cat example.json | python3 main.py > dst.yml
$ cat example.json | python3 main.py | pbcopy
type:
object
properties:
count:
type:
integer
example:
30
message:
type:
string
example:
''
users:
type:
array
items:
type:
object
properties:
name:
type:
string
example:
Tom
id:
type:
integer
example:
1
uid:
type:
string
example:
'000001'
profile:
type:
object
properties:
display_name:
type:
string
example:
Little Tom
age:
type:
integer
example:
29
birthday:
type:
string
example:
1999-01-03
location:
type:
string
example:
''
description:
type:
string
example:
A human\nOr just a cat?\n
last_cursor:
type:
integer
example:
3673