https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30194
Martin Renvoize <martin.renvo...@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #132112|0 |1 is obsolete| | --- Comment #65 from Martin Renvoize <martin.renvo...@ptfs-europe.com> --- Created attachment 132124 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=132124&action=edit Bug 30194: Auto generate swagger.yaml It was not sorted correct and had inconsistencies. use YAML; use File::Slurp qw( write_file ); my $hash = YAML::LoadFile('api/v1/swagger/swagger.yaml'); YAML::Bless($hash)->keys([qw(swagger basePath definitions parameters paths info tags)]); my $info = $hash->{info}; YAML::Bless($info)->keys([qw(title version license contact description)]); my $yaml= YAML::Dump($hash); $yaml =~ s|'|"|xmsg; write_file('api/v1/swagger/swagger.yaml', $yaml); Signed-off-by: Martin Renvoize <martin.renvo...@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/