dotfiles/vim/.vim/UltiSnips/openapi.snippets

19 lines
348 B
Plaintext

snippet base "Base" b
openapi: 3.0.0
info:
title: ${1:${VISUAL:Title}}
description: ${2:${VISUAL:Title}}
version: 0.0.1
servers:
- url: ${3:${VISUAL:https://example.com/api}}
description: ${4:${VISUAL:default api point for the service}}
$0
endsnippet
snippet desc "Description" b
description: ${1:${VISUAL:Description}}
endsnippet