如何从Java ArrayList中过滤掉一些内容,如果你有:
过滤器是"如何"它将删除乔和迈克.
我有一个最近创建的RESTful API,我不记得几个月后如何使用它.我决定用Swagger记录我的API,但是我疯了.
我使用http://editor.swagger.io/创建了YAML文件,然后我将其转换为Swagger可以使用的JSON文件.当我将文件放入Swagger UI时,它就会陷入困境fetching resource list: localhost/swagger.json并且控制台说Uncaught TypeError: Cannot read property '$ref' of undefined .

我正在使用Swagger UI的2.1.0-alpha.5版本.
这是我的spec文件:
swagger: '2.0'
info:
title: TITLE
description: BLAH, BLAH, BLAH, ETC
version: "1.0b"
host: api.example.com
schemes:
- http
basePath: /v1
produces:
- application/json
paths:
/match.json:
get:
#summary: Match Data
description: Used for getting data about a match
parameters:
- name: id
in: query
description: The match ID of from a game
required: true
type: integer
format: int32
- …