openapi: Refactor return value of get_path function.
openapi: Refactor return value of get_path function.

The ArticlePath dataclass added can now be used
for the return value of get_path function to make
it more extensible and robust.

punchagan/zulip,andersk/zulip,andersk/zulip,kou/zulip,kou/zulip,eeshangarg/zulip,hackerkid/zulip,hackerkid/zulip,hackerkid/zulip,zulip/zulip,eeshangarg/zulip,punchagan/zulip,punchagan/zulip,punchagan/zulip,kou/zulip,eeshangarg/zulip,punchagan/zulip,zulip/zulip,rht/zulip,hackerkid/zulip,punchagan/zulip,rht/zulip,andersk/zulip,kou/zulip,zulip/zulip,eeshangarg/zulip,rht/zulip,rht/zulip,andersk/zulip,zulip/zulip,andersk/zulip,punchagan/zulip,hackerkid/zulip,hackerkid/zulip,andersk/zulip,rht/zulip,eeshangarg/zulip,eeshangarg/zulip,kou/zulip,eeshangarg/zulip,hackerkid/zulip,zulip/zulip,zulip/zulip,kou/zulip,kou/zulip,andersk/zulip,zulip/zulip,rht/zulip,rht/zulip