code: def test_spec_schemas(app):
      @app.route("/foo")
      @app.output(Foo(partial=True))
      def foo():
          pass
  
      @app.route("/bar")
      @app.output(Bar(many=True))
      def bar():
          pass
  
      @app.route("/baz")
      @app.output(Baz)
      def baz():
          pass
  
      class Spam(Schema):
          id = Integer()
  
      @app.route("/spam")
      @app.output(Spam)
      def spam():
          pass
  
      class Ham(Schema):
          id = Integer()
  
      @app.route("/ham")
      @app.output(Ham)
      def ham():
          pass
  
      spec = app.spec
      assert len(spec["components"]["schemas"]) == 5
      assert "FooUpdate" in spec["components"]["schemas"]
      assert "Bar" in spec["components"]["schemas"]
      assert "Baz" in spec["components"]["schemas"]
      assert "Spam" in spec["components"]["schemas"]
      assert "Ham" in spec["components"]["schemas"]
  
imports: import json
  import pytest
  from flask import request
  from openapi_spec_validator import validate_spec
  from .schemas import Bar
  from .schemas import Baz
  from .schemas import Foo
  from apiflask import APIBlueprint
  from apiflask import Schema
  from apiflask.commands import spec_command
  from apiflask.fields import Integer
label_desc: Use image node_id 9 for calling a global function with example usage: test_spec_schemas(app) without return types