Sha256: d86b08bfa33e4cbbfee679e5dd08520e286b48b5ab81e5bdc1e7480d8f114000

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 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.yml
ginny-0.6.2 schema/param.schema.yml