{{ asyncapi.info().description() }}
-``` - -React: -```js -import { File } from '@asyncapi/generator-react-sdk'; - -export default function({ asyncapi }) { - return ( -{asyncapi.info().description()}
-{{ channel.description() }}
-{channel.description()}
-stringTurns Markdown into HTML
-Logs input to server logs to stdout
-Logs input to server as error to stderr
-objectExtracts example from the message payload
-objectExtracts example from the message header
-stringGenerate string with example from provided schema
-stringTurns multiline string into one liner
-stringGenerate JSDoc from message properties of the header and the payload
-stringHelper function to replace server variables in the url with actual values
-string
-Turns Markdown into HTML
-
-**Kind**: global function
-**Returns**: string - HTML string
-**Md**: string - String with valid Markdown syntax
-
-
-## log()
-Logs input to server logs to stdout
-
-**Kind**: global function
-**Str**: string Info that is logged
-
-
-## logError()
-Logs input to server as error to stderr
-
-**Kind**: global function
-**Str**: string Info that is logged
-
-
-## getPayloadExamples() ⇒ object
-Extracts example from the message payload
-
-**Kind**: global function
-**Msg**: object - Parser Message function
-
-
-## getHeadersExamples() ⇒ object
-Extracts example from the message header
-
-**Kind**: global function
-**Msg**: object - Parser Message function
-
-
-## generateExample() ⇒ string
-Generate string with example from provided schema
-
-**Kind**: global function
-**Schema**: object - Schema object as JSON and not Schema model map
-**Options**: object - Options object. Supported options are listed here https://github.com/Redocly/openapi-sampler#usage
-
-
-## oneLine() ⇒ string
-Turns multiline string into one liner
-
-**Kind**: global function
-**Str**: string - Any multiline string
-
-
-## docline() ⇒ string
-Generate JSDoc from message properties of the header and the payload
-
-**Kind**: global function
-**Returns**: string - JSDoc compatible entry
-**Field**: object - Property object
-**Fieldname**: string - Name of documented property
-**Scopepropname**: string - Name of param for JSDocs
-**Example**
-```js
-docline(
- Schema {
- _json: {
- type: 'integer',
- minimum: 0,
- maximum: 100,
- 'x-parser-schema-id': 'string
-Helper function to replace server variables in the url with actual values
-
-**Kind**: global function
-**Url**: string - url string
-**Serverservervariables**: Object - Variables model map
diff --git a/apps/nunjucks-filters/package.json b/apps/nunjucks-filters/package.json
deleted file mode 100644
index c9e03b5137..0000000000
--- a/apps/nunjucks-filters/package.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "name": "@asyncapi/nunjucks-filters",
- "version": "2.1.0",
- "description": "Library with Nunjucks filters for templates using AsyncAPI Generator",
- "private": false,
- "main": "src/index.js",
- "scripts": {
- "test": "ava",
- "docs": "jsdoc2md src/customFilters.js > docs/api.md",
- "lint": "eslint --max-warnings 0 --config ../../.eslintrc --ignore-path ../../.eslintignore .",
- "lint:fix": "eslint --fix --config ../../.eslintrc --ignore-path ../../.eslintignore .",
- "generate:assets": "npm run docs",
- "bump:version": "npm --no-git-tag-version --allow-same-version version $VERSION"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/asyncapi/generator.git"
- },
- "keywords": [
- "asyncapi",
- "generator",
- "nunjucks"
- ],
- "author": "Lukasz Gornicki test
\n'; - - is(value, expected); -}); - -test('generateExample returns valid example', t => { - const is = t.is; - const value = generateExample({ type: 'object', properties: { email: { type: 'string', format: 'email' } }, 'x-parser-schema-id': '