Skip to content

Modify response- and request-body snippets to have language attribute depending on Content-Type header #462

Closed as not planned
@fsmorygo

Description

@fsmorygo

Current default snippet

[source,options="nowrap"]
----
{{body}}
----

It's much more convenient to automatically add json attribute like this:

[source,{{language}},options="nowrap"]
----
{{body}}
----

AbstractBodySnippet#createModel could set language property in model depending on the contentType

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions