From 7b2a197b3ce4e7c597cfc6245fedc1c06c8352ab Mon Sep 17 00:00:00 2001 From: fusagiko / takayamaki Date: Sat, 9 May 2026 22:06:15 +0000 Subject: [PATCH] Assert GET /api/v2/instance with the OpenAPI schemas --- spec/requests/api/v2/instance_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/requests/api/v2/instance_spec.rb b/spec/requests/api/v2/instance_spec.rb index d9d5df1bea8..654d88207eb 100644 --- a/spec/requests/api/v2/instance_spec.rb +++ b/spec/requests/api/v2/instance_spec.rb @@ -21,6 +21,8 @@ RSpec.describe 'Instances' do .and include(title: 'Mastodon') .and include_api_versions .and include_configuration_limits + + assert_schema_conform(200) end end @@ -39,6 +41,8 @@ RSpec.describe 'Instances' do .and include(title: 'Mastodon') .and include_api_versions .and include_configuration_limits + + assert_schema_conform(200) end end @@ -59,6 +63,8 @@ RSpec.describe 'Instances' do expect(response.parsed_body) .to be_present .and include(wrapstodon: 2025) + + assert_schema_conform(200) end end