Css Swagger json编辑器:未定义错误
当我使用Swagger编辑器时,在渲染中有一个未定义的错误 我的代码在这里:Css Swagger json编辑器:未定义错误,css,facebook,spring,Css,Facebook,Spring,当我使用Swagger编辑器时,在渲染中有一个未定义的错误 我的代码在这里: swagger: '2.0' info: version: 1.0.0 title: AccountBalance host: localhost:2625 basePath: /accountbalance schemes: - http - https consumes: - application/json - text/xml produces: - application/json
swagger: '2.0'
info:
version: 1.0.0
title: AccountBalance
host: localhost:2625
basePath: /accountbalance
schemes:
- http
- https
consumes:
- application/json
- text/xml
produces:
- application/json
- text/html
paths:
/:
get:
parameters:
- name: acc
in: query
description: acc
type: integer
format: long
responses:
200:
description: List all AccBal
schema:
title: acc
type: array
items:
$ref: '#/definitions/accountbalance'
definitions:
accountbalance:
properties:
Balance:
type: integer
定义:对象应该在根级别
swagger: '2.0'
info:
version: 1.0.0
title: AccountBalance
host: localhost:2625
basePath: /accountbalance
schemes:
- http
- https
consumes:
- application/json
- text/xml
produces:
- application/json
- text/html
paths:
/:
get:
parameters:
- name: acc
in: query
description: acc
type: integer
format: long
responses:
200:
description: List all AccBal
schema:
title: acc
type: array
items:
$ref: '#/definitions/accountbalance'
definitions:
accountbalance:
properties:
Balance:
type: integer