Sha256: 86eb16a13785d144d35bcdd76b4096d7063934a3c7602c4ac8fc44f1cb1cc08d

Contents?: true

Size: 1.26 KB

Versions: 2

Compression:

Stored size: 1.26 KB

Contents

{
  "$id": "https://raw.githubusercontent.com/tcd/ginny/master/schema/param.schema.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Ginny Param Definition",
  "description": "Used to generate a function [parameter](https://ruby-doc.org/core-2.6.5/doc/syntax/methods_rdoc.html#label-Arguments).",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "description": "Name of the param.",
      "type": "string"
    },
    "description": {
      "description": "Description of the param. [Markdown](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) is supported.",
      "type": "string"
    },
    "type": {
      "description": "[Type](https://rubydoc.info/gems/yard/file/docs/GettingStarted.md#Declaring_Types) of the param.",
      "type": "string"
    },
    "default": {
      "description": "Default value for the Param. Set `optional` as `true` for a default `nil` value.",
      "type": "string"
    },
    "optional": {
      "description": "If `true`, the default value will be `nil`.",
      "type": "boolean"
    },
    "keyword": {
      "description": "If `true`, the param will be generated as a [keyword argument](https://bugs.ruby-lang.org/issues/14183).",
      "type": "boolean"
    }
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ginny-0.6.3 schema/param.schema.json
ginny-0.6.2 schema/param.schema.json