fybrik/crdoc

Field default value

cbandy opened this issue · 2 comments

I'd like to be able to show the default value of a field. For example, the default value of spec.replicas is 1 below.

    schema:
      openAPIV3Schema:
        properties:
          spec:
            type: object
            properties:
              replicas:
                default: 1
                format: int32
                minimum: 0
                type: integer

Here is how it looks like with the built-in template with #55 (scroll down to the code field)
https://github.com/mesh-for-data/crdoc/blob/ef88e6787ede8fccb675759561b252e070e1def7/example/output.md

Looks great!