Skip to content

Commit

Permalink
refactor(open-api): remove redundant checks for schema prop
Browse files Browse the repository at this point in the history
INT-407
  • Loading branch information
FreekVR committed Apr 24, 2024
1 parent 02680c6 commit ce11a5e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<template>
<header>
<strong v-if="title">{{ title }}</strong>
<strong v-else-if="schema && schema.title">{{ schema.title }}</strong>
<strong v-else-if="schema.title">{{ schema.title }}</strong>
<span
v-if="isRequired"
title="Required"
class="text-red-600"
>*</span
>
<pre
v-if="schema && schema.type"
v-if="schema.type"
class="m-0 p-0 text-sm whitespace-nowrap">
{{ schema.type }}
<template v-if="schema.format">({{ schema.format }})</template>
</pre>

<Markdown
v-if="schema && schema.description"
v-if="schema.description"
:content="schema.description"
class="m-0 p-0 text-gray-500 text-sm" />

<div v-if="schema && schema.enum?.length">
<div v-if="schema.enum?.length">
<strong class="text-sm">Possible values:</strong>
<ul
v-if="schema.enum.length < 10"
Expand Down

0 comments on commit ce11a5e

Please sign in to comment.